Skip to content

Commit

Permalink
Revert "fix: don't use setup() in Results.vue"
Browse files Browse the repository at this point in the history
This reverts commit a327c70.
  • Loading branch information
Chartman123 committed Apr 15, 2024
1 parent a327c70 commit 1ba3a14
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/views/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,8 @@ export default {
mixins: [PermissionTypes, ViewsMixin],
data() {
setup() {
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 @@ -353,6 +343,20 @@ 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 1ba3a14

Please sign in to comment.