diff options
author | Louis Chemineau <louis@chmn.me> | 2022-11-29 16:26:54 +0100 |
---|---|---|
committer | Louis (Rebase PR Action) <artonge@users.noreply.github.com> | 2023-01-26 10:12:23 +0000 |
commit | 6a2f8bc5997a4b40baf8b967d6d8ccdf29735d3b (patch) | |
tree | 116fa4a442c97ac44839e14460b797d50f77e4f2 /apps/files_versions/src | |
parent | 629de6c8c97f9a455944046737421b927b1e2d9b (diff) | |
download | nextcloud-server-6a2f8bc5997a4b40baf8b967d6d8ccdf29735d3b.tar.gz nextcloud-server-6a2f8bc5997a4b40baf8b967d6d8ccdf29735d3b.zip |
Allow to delete a version through DAV
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_versions/src')
-rw-r--r-- | apps/files_versions/src/components/Version.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue index a06d6a0ba8e..8aafabddfad 100644 --- a/apps/files_versions/src/components/Version.vue +++ b/apps/files_versions/src/components/Version.vue @@ -62,7 +62,7 @@ </template> {{ t('files_versions', 'Download version') }} </NcActionLink> - <NcActionButton v-if="!isCurrent" + <NcActionButton v-if="!isCurrent && capabilities.files.version_deletion === true" :close-after-click="true" @click="deleteVersion"> <template #icon> @@ -175,7 +175,7 @@ export default { return { showVersionLabelForm: false, formVersionLabelValue: this.version.label, - capabilities: loadState('core', 'capabilities', { files: { version_labeling: false } }), + capabilities: loadState('core', 'capabilities', { files: { version_labeling: false, version_deletion: false } }), } }, computed: { |