diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-12-13 22:20:59 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-12-13 22:20:59 +0000 |
| commit | 2b41c1cfe86cba814aba98da14d70ac1c09f422f (patch) | |
| tree | b90119b33d0d9cbcccc9193809864fe630020bf6 /src/components/settings_modal/tabs/notifications_tab.js | |
| parent | a98e241a815a95a2a7dd073aec8a993719037dcc (diff) | |
| parent | 55ed65331fb5e53374a0be6710896c383e34d120 (diff) | |
Merge branch 'notifications-thru-sw' into 'develop'
Notifications improvements.
See merge request pleroma/pleroma-fe!1873
Diffstat (limited to 'src/components/settings_modal/tabs/notifications_tab.js')
| -rw-r--r-- | src/components/settings_modal/tabs/notifications_tab.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/settings_modal/tabs/notifications_tab.js b/src/components/settings_modal/tabs/notifications_tab.js index 3c6ab87f..c53b5889 100644 --- a/src/components/settings_modal/tabs/notifications_tab.js +++ b/src/components/settings_modal/tabs/notifications_tab.js @@ -16,6 +16,10 @@ const NotificationsTab = { user () { return this.$store.state.users.currentUser }, + canReceiveReports () { + if (!this.user) { return false } + return this.user.privileges.includes('reports_manage_reports') + }, ...SharedComputedObject() }, methods: { |
