Skip to content

Commit

Permalink
fix: remove setup() and move code to data() in Results.vue
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
  • Loading branch information
Chartman123 committed Apr 15, 2024
1 parent 1ba3a14 commit 56f410a
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/views/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,18 @@ export default {
mixins: [PermissionTypes, ViewsMixin],
setup() {
data() {
return {
activeResponseView: responseViews[0],
isDownloadActionOpened: false,
loadingResults: true,
picker: null,
showSummary: true,
showConfirmDeleteDialog: false,
showLinkedFileNotAvailableDialog: false,
isMobile: useIsSmallMobile(),
// non reactive props
Expand Down Expand Up @@ -343,20 +353,6 @@ export default {
}
},
data() {
return {
activeResponseView: responseViews[0],
isDownloadActionOpened: false,
loadingResults: true,
picker: null,
showSummary: true,
showConfirmDeleteDialog: false,
showLinkedFileNotAvailableDialog: false,
}
},
computed: {
isFormArchived() {
return this.form.state === FormState.FormArchived
Expand Down

0 comments on commit 56f410a

Please sign in to comment.