mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
Merge pull request #13660 from nextcloud/fix/13578/hide-browse-in-shared-items
This commit is contained in:
commit
2ecce8545a
1 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ import {
|
|||
sharedItemsWithPreviewLimit,
|
||||
sharedItemTitle,
|
||||
} from './sharedItemsConstants.js'
|
||||
import { CONVERSATION } from '../../../constants.js'
|
||||
import { hasTalkFeature } from '../../../services/CapabilitiesManager.ts'
|
||||
import { EventBus } from '../../../services/EventBus.ts'
|
||||
import { useSharedItemsStore } from '../../../stores/sharedItems.js'
|
||||
|
|
@ -162,6 +163,7 @@ export default {
|
|||
|
||||
canCreatePollDrafts() {
|
||||
return hasTalkFeature(this.token, 'talk-polls-drafts') && this.$store.getters.isModerator
|
||||
&& [CONVERSATION.TYPE.GROUP, CONVERSATION.TYPE.PUBLIC].includes(this.conversation.type)
|
||||
},
|
||||
|
||||
loading() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue