Skip to content

Commit

Permalink
Merge pull request #2068 from nextcloud/fix/move-setup
Browse files Browse the repository at this point in the history
fix: Move non-reactive props and composables to `setup`
  • Loading branch information
Chartman123 authored Apr 15, 2024
2 parents eadf4a4 + fe116b8 commit 0531eb4
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 0531eb4

Please sign in to comment.