diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-04-11 21:28:02 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-04-11 21:28:02 +0000 |
| commit | a81452070972d5bf4c10a75d15b36fa1b7f19bcd (patch) | |
| tree | 6d49429a2cd7898fff3c7ac914190f61407abb3d | |
| parent | 9a8f52a38db26ec4fe57afbd5aca6a1cf15eb91c (diff) | |
| parent | 5c0deb1e6f3a854ddcef99f4bdfa82672524f82c (diff) | |
Merge branch 'tusooa/pin-announcement' into 'develop'
Fix bug where announcements cannot be pinned
See merge request pleroma/pleroma-fe!1809
| -rw-r--r-- | src/components/navigation/navigation_pins.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/navigation/navigation_pins.js b/src/components/navigation/navigation_pins.js index ef78e44c..86c33d1f 100644 --- a/src/components/navigation/navigation_pins.js +++ b/src/components/navigation/navigation_pins.js @@ -45,6 +45,7 @@ const NavPanel = { privateMode: state => state.instance.private, federating: state => state.instance.federating, pleromaChatMessagesAvailable: state => state.instance.pleromaChatMessagesAvailable, + supportsAnnouncements: state => state.announcements.supportsAnnouncements, pinnedItems: state => new Set(state.serverSideStorage.prefsStorage.collections.pinnedNavItems) }), pinnedList () { @@ -56,6 +57,7 @@ const NavPanel = { ], { hasChats: this.pleromaChatMessagesAvailable, + hasAnnouncements: this.supportsAnnouncements, isFederating: this.federating, isPrivate: this.privateMode, currentUser: this.currentUser @@ -75,6 +77,7 @@ const NavPanel = { ], { hasChats: this.pleromaChatMessagesAvailable, + hasAnnouncements: this.supportsAnnouncements, isFederating: this.federating, isPrivate: this.privateMode, currentUser: this.currentUser |
