diff options
| author | Henry Jameson <me@hjkos.com> | 2022-04-05 19:22:15 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-04-05 19:22:15 +0300 |
| commit | 6a319154d94c51f0464e0de31c6f88fbe20defea (patch) | |
| tree | ffded435e5696dec749671d16af56cecbda1b001 /src/components/notifications/notifications.js | |
| parent | 4a068483ed9b1334780402cbe64dfa3f4a0e8a3a (diff) | |
teleport bread
Diffstat (limited to 'src/components/notifications/notifications.js')
| -rw-r--r-- | src/components/notifications/notifications.js | 15 |
1 files changed, 13 insertions, 2 deletions
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) }, |
