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 @@
<translate>Lesen</translate>
</a>
</li>
<li :class="{ active: editView }">
<li
v-if="canEdit"
:class="{ active: editView }"
>
<a href="#" @click="setEditView">
<translate>Bearbeiten</translate>
</a>
......@@ -40,7 +43,13 @@ export default {
},
discussView() {
return this.viewMode === 'discuss';
}
},
canEdit() {
if (!this.structuralElement) {
return false;
}
return this.structuralElement.attributes['can-edit'];
},
},
methods: {
...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