Checks if current user can edit to display collection settings button on collection list.

This commit is contained in:
Mateus Machado Luna 2019-03-21 10:49:06 -03:00
parent d5fa3b7326
commit ed6d87c52b
1 changed files with 4 additions and 3 deletions

View File

@ -252,6 +252,7 @@
<div class="actions-container">
<a
id="button-edit"
v-if="collection.current_user_can_edit"
:aria-label="$i18n.getFrom('collections','edit_item')"
@click.prevent.stop="goToCollectionEditPage(collection.id)">
<span class="icon">
@ -292,7 +293,7 @@ export default {
cursorPosX: -1,
cursorPosY: -1,
contextMenuIndex: null,
contextMenuCollection: null,
contextMenuCollection: null
}
},
props: {