From 6a319154d94c51f0464e0de31c6f88fbe20defea Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 5 Apr 2022 19:22:15 +0300 Subject: teleport bread --- src/components/notifications/notifications.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/components/notifications/notifications.js') diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index c8f1ebcb..2bb8a1d1 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -23,8 +23,6 @@ const Notifications = { NotificationFilters }, props: { - // Disables display of panel header - noHeading: Boolean, // Disables panel styles, unread mark, potentially other notification-related actions // meant for "Interactions" timeline minimalMode: Boolean, @@ -65,6 +63,19 @@ const Notifications = { loading () { return this.$store.state.statuses.notifications.loading }, + noHeading () { + const { layoutType } = this.$store.state.interface + console.log(layoutType) + return layoutType === 'mobile' + }, + teleportTarget () { + const { layoutType } = this.$store.state.interface + const map = { + wide: '#notifs-column', + mobile: '#mobile-notifications' + } + return map[layoutType] || '#notifs-sidebar' + }, notificationsToDisplay () { return this.filteredNotifications.slice(0, this.unseenCount + this.seenToDisplayCount) }, -- cgit v1.2.3-70-g09d2 From d3d219f15d4bac88f58d4fd0fed6f798b81cca82 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 7 Apr 2022 14:37:16 +0300 Subject: fix interactions page --- src/components/notifications/notifications.js | 3 +-- src/components/notifications/notifications.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/components/notifications/notifications.js') diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 2bb8a1d1..fb2579a5 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -65,8 +65,7 @@ const Notifications = { }, noHeading () { const { layoutType } = this.$store.state.interface - console.log(layoutType) - return layoutType === 'mobile' + return this.minimalMode || layoutType === 'mobile' }, teleportTarget () { const { layoutType } = this.$store.state.interface diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index f50d3d38..bfc97dc0 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -1,5 +1,5 @@