diff options
author | Michiel de Jong <michiel@unhosted.org> | 2023-02-20 09:50:31 +0000 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2023-03-08 16:46:55 +0100 |
commit | c0e84cb512ca76cea263642918f9e045aed3c5c4 (patch) | |
tree | d1965e39eee3bc4358563a755fa43e9ac82a5ae4 /apps/files_sharing/src | |
parent | 80e12cf72608b7c5776f02f04da98d7a5968bc73 (diff) | |
download | nextcloud-server-c0e84cb512ca76cea263642918f9e045aed3c5c4.tar.gz nextcloud-server-c0e84cb512ca76cea263642918f9e045aed3c5c4.zip |
Add SHARE_TYPE_SCIENCEMESH
Signed-off-by: Michiel de Jong <michiel@unhosted.org>
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) |