UI: Don't show share action when sharing is not allowed

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2021-04-18 14:44:43 +02:00
parent bbf527e039
commit e785ea3c02
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@
<ActionCheckbox @change="clickSelect">
{{ t('bookmarks', 'Select folder') }}
</ActionCheckbox>
<ActionButton icon="icon-share" :close-after-click="true" @click="onShare">
<ActionButton v-if="permissions.canShare"
icon="icon-share"
:close-after-click="true"
@click="onShare">
{{ t('bookmarks', 'Share folder') }}
</ActionButton>
<ActionButton icon="icon-rename" :close-after-click="true" @click="onRename">