diff options
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntry.vue | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index ad36361b9c2..a19d1331f61 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -42,29 +42,33 @@ <!-- create permission --> <ActionCheckbox + v-if="isFolder" ref="canCreate" :checked.sync="canCreate" :value="permissionsCreate" :disabled="saving"> {{ t('files_sharing', 'Allow creating') }} </ActionCheckbox> - <!-- reshare permission --> - <ActionCheckbox - ref="canReshare" - :checked.sync="canReshare" - :value="permissionsShare" - :disabled="saving"> - {{ t('files_sharing', 'Allow resharing') }} - </ActionCheckbox> <!-- delete permission --> <ActionCheckbox + v-if="isFolder" ref="canDelete" :checked.sync="canDelete" :value="permissionsDelete" :disabled="saving"> {{ t('files_sharing', 'Allow deleting') }} </ActionCheckbox> + + <!-- reshare permission --> + <ActionCheckbox + ref="canReshare" + :checked.sync="canReshare" + :value="permissionsShare" + :disabled="saving"> + {{ t('files_sharing', 'Allow resharing') }} + </ActionCheckbox> + <!-- expiration date --> <ActionCheckbox :checked.sync="hasExpirationDate" :disabled="config.isDefaultExpireDateEnforced || saving" @@ -256,6 +260,14 @@ export default { }, /** + * Is the current share a folder ? + * @returns {boolean} + */ + isFolder() { + return this.fileInfo.type === 'dir' + }, + + /** * Does the current share have an expiration date * @returns {boolean} */ |