summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorGretaD <gretadoci@gmail.com>2019-12-16 17:12:20 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-19 16:14:47 +0100
commit455013c3098d0ef2232e1f0c60aeb1f0b94b91ca (patch)
treee653b95f71d26013624f4165a3fdc8be158de763 /apps/files_sharing/src
parent57997fefa2da537381ed8bec1dce039d7a4b6438 (diff)
downloadnextcloud-server-455013c3098d0ef2232e1f0c60aeb1f0b94b91ca.tar.gz
nextcloud-server-455013c3098d0ef2232e1f0c60aeb1f0b94b91ca.zip
fix the folder share
Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue28
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}
*/