Commit 14945cbe authored by Vladimir Erokhov's avatar Vladimir Erokhov

bugfix(navigation-edit-button): Finished task

parent 83e1a5c4
Pipeline #4470 passed with stage
in 1 minute and 56 seconds
......@@ -38,7 +38,7 @@
v-flex
v-layout(justify-end)
v-btn.ma-0(
:v-show="checkViewEditButtonAccessById(view._id)",
v-show="checkViewEditButtonAccessById(view._id)",
depressed,
small,
icon,
......
......@@ -34,9 +34,9 @@ export default {
return group => group.views.filter(view => this.checkReadAccess(view._id));
},
checkViewEditButtonAccessById(viewId) {
checkViewEditButtonAccessById() {
return id =>
(this.checkUpdateViewAccessById(id) || this.checkDeleteViewAccessById(viewId)) && this.isEditingMode;
(this.checkUpdateViewAccessById(id) || this.checkDeleteViewAccessById(id)) && this.isEditingMode;
},
},
mounted() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment