diff options
| author | Weblate <noreply@weblate.org> | 2022-07-31 23:00:53 +0000 |
|---|---|---|
| committer | Weblate <noreply@weblate.org> | 2022-07-31 23:00:53 +0000 |
| commit | 71d9bbb56bf0927ce29e926e6e717c5ac8304f20 (patch) | |
| tree | 9093fda29c7b5f27cd74d38aba42f40ca0966daf /src/components/notifications/notifications.js | |
| parent | e0aeab04b8c1c296d2e16943f7333e05f5b2450b (diff) | |
| parent | 33ad712852088f8b99a82ec561733d41d63b0034 (diff) | |
Merge remote-tracking branch 'origin/develop' into develop
Diffstat (limited to 'src/components/notifications/notifications.js')
| -rw-r--r-- | src/components/notifications/notifications.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 82aa1489..0851f407 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -1,3 +1,4 @@ +import { computed } from 'vue' import { mapGetters } from 'vuex' import Notification from '../notification/notification.vue' import NotificationFilters from './notification_filters.vue' @@ -40,6 +41,11 @@ const Notifications = { seenToDisplayCount: DEFAULT_SEEN_TO_DISPLAY_COUNT } }, + provide () { + return { + popoversZLayer: computed(() => this.popoversZLayer) + } + }, computed: { mainClass () { return this.minimalMode ? '' : 'panel panel-default' @@ -77,6 +83,10 @@ const Notifications = { } return map[layoutType] || '#notifs-sidebar' }, + popoversZLayer () { + const { layoutType } = this.$store.state.interface + return layoutType === 'mobile' ? 'navbar' : null + }, notificationsToDisplay () { return this.filteredNotifications.slice(0, this.unseenCount + this.seenToDisplayCount) }, |
