Skip to content

Commit

Permalink
fix: Move non-reactive props and composables to setup
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Apr 15, 2024
1 parent eadf4a4 commit fe116b8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/views/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,15 @@ export default {
mixins: [PermissionTypes, ViewsMixin],
setup() {
return {
isMobile: useIsSmallMobile(),
// non reactive props
responseViews,
}
},
data() {
return {
activeResponseView: responseViews[0],
Expand All @@ -317,11 +326,6 @@ export default {
showConfirmDeleteDialog: false,
showLinkedFileNotAvailableDialog: false,
isMobile: useIsSmallMobile(),
// non reactive props
responseViews,
linkedFileNotAvailableButtons: [
{
label: t('forms', 'Unlink spreadsheet'),
Expand Down

0 comments on commit fe116b8

Please sign in to comment.