diff options
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/components/SharingInput.vue | 6 | ||||
-rw-r--r-- | apps/files_sharing/src/index.js | 1 | ||||
-rw-r--r-- | apps/files_sharing/src/share.js | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 8dadb4689ff..de6812c9569 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -194,6 +194,7 @@ export default { this.SHARE_TYPES.SHARE_TYPE_ROOM, this.SHARE_TYPES.SHARE_TYPE_GUEST, this.SHARE_TYPES.SHARE_TYPE_DECK, + this.SHARE_TYPES.SHARE_TYPE_SCIENCEMESH, ] if (OC.getCapabilities().files_sharing.public.enabled === true) { @@ -420,6 +421,11 @@ export default { icon: 'icon-deck', iconTitle: t('files_sharing', 'Deck board'), } + case this.SHARE_TYPES.SHARE_TYPE_SCIENCEMESH: + return { + icon: 'icon-sciencemesh', + iconTitle: t('files_sharing', 'Science Mesh'), + } default: return {} } diff --git a/apps/files_sharing/src/index.js b/apps/files_sharing/src/index.js index 9f80c79270e..95ed017bbf9 100644 --- a/apps/files_sharing/src/index.js +++ b/apps/files_sharing/src/index.js @@ -34,5 +34,6 @@ Object.assign(OC, { SHARE_TYPE_REMOTE_GROUP: 9, SHARE_TYPE_ROOM: 10, SHARE_TYPE_DECK: 12, + SHARE_TYPE_SCIENCEMESH: 15, }, }) diff --git a/apps/files_sharing/src/share.js b/apps/files_sharing/src/share.js index ca4dba7c888..06eea5807a1 100644 --- a/apps/files_sharing/src/share.js +++ b/apps/files_sharing/src/share.js @@ -201,6 +201,8 @@ import { getCapabilities } from '@nextcloud/capabilities' hasShares = true } else if (shareType === ShareTypes.SHARE_TYPE_DECK) { hasShares = true + } else if (shareType === ShareTypes.SHARE_TYPE_SCIENCEMESH) { + hasShares = true } }) OCA.Sharing.Util._updateFileActionIcon($tr, hasShares, hasLink) |