|
@@ -46,7 +46,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template #actions>
|
|
<template #actions>
|
|
- <NcActionButton v-if="capabilities.files.version_labeling === true"
|
|
|
|
|
|
+ <NcActionButton v-if="enableLabeling"
|
|
:close-after-click="true"
|
|
:close-after-click="true"
|
|
@click="openVersionLabelModal">
|
|
@click="openVersionLabelModal">
|
|
<template #icon>
|
|
<template #icon>
|
|
@@ -70,7 +70,7 @@
|
|
</template>
|
|
</template>
|
|
{{ t('files_versions', 'Download version') }}
|
|
{{ t('files_versions', 'Download version') }}
|
|
</NcActionLink>
|
|
</NcActionLink>
|
|
- <NcActionButton v-if="!isCurrent && capabilities.files.version_deletion === true"
|
|
|
|
|
|
+ <NcActionButton v-if="!isCurrent && enableDeletion"
|
|
:close-after-click="true"
|
|
:close-after-click="true"
|
|
@click="deleteVersion">
|
|
@click="deleteVersion">
|
|
<template #icon>
|
|
<template #icon>
|
|
@@ -250,6 +250,16 @@ export default {
|
|
formattedDate() {
|
|
formattedDate() {
|
|
return moment(this.version.mtime).format('LLL')
|
|
return moment(this.version.mtime).format('LLL')
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ /** @return {boolean} */
|
|
|
|
+ enableLabeling() {
|
|
|
|
+ return this.capabilities.files.version_labeling === true && this.fileInfo.mountType !== 'group'
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ /** @return {boolean} */
|
|
|
|
+ enableDeletion() {
|
|
|
|
+ return this.capabilities.files.version_deletion === true && this.fileInfo.mountType !== 'group'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
openVersionLabelModal() {
|
|
openVersionLabelModal() {
|