diff options
| author | Henry Jameson <me@hjkos.com> | 2022-06-22 00:30:10 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-06-22 00:30:10 +0300 |
| commit | 872db65fd86aaa605789383e629321e32447a997 (patch) | |
| tree | 498d4bba5b24a9dc7855809388dcea4a29389562 /src/components/notifications | |
| parent | 93293db038a864aafd0f6da3df15bc86e0370bfc (diff) | |
slight z-index refactor and attempt at organizing it
Diffstat (limited to 'src/components/notifications')
| -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 fb2579a5..63d827d8 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' @@ -38,6 +39,11 @@ const Notifications = { seenToDisplayCount: DEFAULT_SEEN_TO_DISPLAY_COUNT } }, + provide () { + return { + popoversZLayer: computed(() => this.popoversZLayer) + } + }, computed: { mainClass () { return this.minimalMode ? '' : 'panel panel-default' @@ -75,6 +81,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) }, |
