fix: permissions for collections and folders
This commit is contained in:
@@ -91,12 +91,9 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
@click="$emit('edit-collection')"
|
@click="$emit('edit-collection')"
|
||||||
v-close-popover
|
v-close-popover
|
||||||
disabled
|
|
||||||
>
|
>
|
||||||
<i class="material-icons">create</i>
|
<i class="material-icons">create</i>
|
||||||
<div v-tooltip.left="$t('disable_new_collection')">
|
<span>{{ $t("edit") }}</span>
|
||||||
<span>{{ $t("edit") }}</span>
|
|
||||||
</div>
|
|
||||||
</button>
|
</button>
|
||||||
<button v-else class="icon" @click="$emit('edit-collection')" v-close-popover>
|
<button v-else class="icon" @click="$emit('edit-collection')" v-close-popover>
|
||||||
<i class="material-icons">create</i>
|
<i class="material-icons">create</i>
|
||||||
@@ -112,12 +109,9 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
@click="confirmRemove = true"
|
@click="confirmRemove = true"
|
||||||
v-close-popover
|
v-close-popover
|
||||||
disabled
|
|
||||||
>
|
>
|
||||||
<i class="material-icons">add</i>
|
<i class="material-icons">add</i>
|
||||||
<div v-tooltip.left="$t('disable_new_collection')">
|
<span>{{ $t("delete") }}</span>
|
||||||
<span>{{ $t("delete") }}</span>
|
|
||||||
</div>
|
|
||||||
</button>
|
</button>
|
||||||
<button v-else class="icon" @click="confirmRemove = true" v-close-popover>
|
<button v-else class="icon" @click="confirmRemove = true" v-close-popover>
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
|
|||||||
@@ -42,7 +42,14 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<v-popover v-if="!saveRequest">
|
<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>
|
<i class="material-icons">more_vert</i>
|
||||||
</button>
|
</button>
|
||||||
<template slot="popover">
|
<template slot="popover">
|
||||||
@@ -75,7 +82,15 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<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>
|
<i class="material-icons">delete</i>
|
||||||
<span>{{ $t("delete") }}</span>
|
<span>{{ $t("delete") }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user