fix: buttons without permission on header

This commit is contained in:
Ramires Viana
2021-03-26 12:45:17 +00:00
parent fcb115f42d
commit 1516d9932b
4 changed files with 14 additions and 8 deletions

View File

@@ -17,12 +17,14 @@
<template #actions>
<action
:disabled="loading"
v-if="user.perm.rename"
icon="mode_edit"
:label="$t('buttons.rename')"
show="rename"
/>
<action
:disabled="loading"
v-if="user.perm.delete"
icon="delete"
:label="$t('buttons.delete')"
@action="deleteFile"
@@ -30,6 +32,7 @@
/>
<action
:disabled="loading"
v-if="user.perm.download"
icon="file_download"
:label="$t('buttons.download')"
@action="download"