Skip to content

Commit

Permalink
auto close sidebar on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasKaminsky committed Sep 25, 2024
1 parent 545b0e2 commit 120c91e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@melmacaluso/vue-modal": "^2.1.0",
"@nextcloud/axios": "^2.5.1",
"@nextcloud/dialogs": "^5.3.7",
"@nextcloud/event-bus": "^3.3.1",
"@nextcloud/router": "^3.0.0",
"@nextcloud/vue": "8.19.0",
"pinia": "^2.1.7",
Expand Down
5 changes: 5 additions & 0 deletions src/components/NavigationGroceryListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
</template>
<script>
import { showError, showInfo, showSuccess } from '@nextcloud/dialogs'
import { emit } from '@nextcloud/event-bus'
import {
NcActionButton,
NcAppNavigationItem,
Expand Down Expand Up @@ -121,6 +122,10 @@ export default {
listId: groceryList.id,
},
})
emit('toggle-navigation', {
open: false,
})
},
},
}
Expand Down

0 comments on commit 120c91e

Please sign in to comment.