Skip to content

Commit

Permalink
fix: hide 'Browse drafts' button in Note to self and 1-1 rooms
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Oct 29, 2024
1 parent 6908891 commit 1a37283
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/RightSidebar/SharedItems/SharedItemsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ import {
sharedItemTitle,
} from './sharedItemsConstants.js'
import { hasTalkFeature } from '../../../services/CapabilitiesManager.ts'
import { CONVERSATION } from '../../../constants.js'

Check failure on line 101 in src/components/RightSidebar/SharedItems/SharedItemsTab.vue

View workflow job for this annotation

GitHub Actions / NPM lint

`../../../constants.js` import should occur before import of `../../../services/CapabilitiesManager.ts`
import { EventBus } from '../../../services/EventBus.ts'
import { useSharedItemsStore } from '../../../stores/sharedItems.js'
import { useSidebarStore } from '../../../stores/sidebar.js'
Expand Down Expand Up @@ -162,6 +163,8 @@ export default {
canCreatePollDrafts() {
return hasTalkFeature(this.token, 'talk-polls-drafts') && this.$store.getters.isModerator
&& ![CONVERSATION.TYPE.NOTE_TO_SELF, CONVERSATION.TYPE.ONE_TO_ONE, CONVERSATION.TYPE.ONE_TO_ONE_FORMER]
.includes(this.conversation.type)
},
loading() {
Expand Down

0 comments on commit 1a37283

Please sign in to comment.