Skip to content
Snippets Groups Projects
Commit 372e8ac8 authored by Ron Lucke's avatar Ron Lucke Committed by Marcus Eibrink-Lunzenauer
Browse files

fix biest #716

parent e25357e2
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<translate>Lesen</translate> <translate>Lesen</translate>
</a> </a>
</li> </li>
<li :class="{ active: editView }"> <li
v-if="canEdit"
:class="{ active: editView }"
>
<a href="#" @click="setEditView"> <a href="#" @click="setEditView">
<translate>Bearbeiten</translate> <translate>Bearbeiten</translate>
</a> </a>
...@@ -40,7 +43,13 @@ export default { ...@@ -40,7 +43,13 @@ export default {
}, },
discussView() { discussView() {
return this.viewMode === 'discuss'; return this.viewMode === 'discuss';
} },
canEdit() {
if (!this.structuralElement) {
return false;
}
return this.structuralElement.attributes['can-edit'];
},
}, },
methods: { methods: {
...mapActions({ ...mapActions({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment