fix: permissions for collections and folders

This commit is contained in:
Liyas Thomas
2021-04-30 01:04:41 +00:00
committed by GitHub
parent e28373dae1
commit ab0bc3e927
2 changed files with 19 additions and 10 deletions

View File

@@ -91,12 +91,9 @@
class="icon"
@click="$emit('edit-collection')"
v-close-popover
disabled
>
<i class="material-icons">create</i>
<div v-tooltip.left="$t('disable_new_collection')">
<span>{{ $t("edit") }}</span>
</div>
<span>{{ $t("edit") }}</span>
</button>
<button v-else class="icon" @click="$emit('edit-collection')" v-close-popover>
<i class="material-icons">create</i>
@@ -112,12 +109,9 @@
class="icon"
@click="confirmRemove = true"
v-close-popover
disabled
>
<i class="material-icons">add</i>
<div v-tooltip.left="$t('disable_new_collection')">
<span>{{ $t("delete") }}</span>
</div>
<span>{{ $t("delete") }}</span>
</button>
<button v-else class="icon" @click="confirmRemove = true" v-close-popover>
<i class="material-icons">delete</i>

View File

@@ -42,7 +42,14 @@
</button>
</div>
<v-popover v-if="!saveRequest">
<button class="tooltip-target icon" v-tooltip.left="$t('more')">
<button
v-if="
collectionsType.type == 'team-collections' &&
collectionsType.selectedTeam.myRole !== 'VIEWER'
"
class="tooltip-target icon"
v-tooltip.left="$t('more')"
>
<i class="material-icons">more_vert</i>
</button>
<template slot="popover">
@@ -75,7 +82,15 @@
</button>
</div>
<div>
<button class="icon" @click="confirmRemove = true" v-close-popover>
<button
v-if="
collectionsType.type == 'team-collections' &&
collectionsType.selectedTeam.myRole !== 'VIEWER'
"
class="icon"
@click="confirmRemove = true"
v-close-popover
>
<i class="material-icons">delete</i>
<span>{{ $t("delete") }}</span>
</button>