Commit caf0af37 authored by VLaroye's avatar VLaroye

feature(sidebar-links-clickable-area): Moved some logic from template to computed prop

parent a4c3c9e8
Pipeline #4452 passed with stage
in 2 minutes and 6 seconds
......@@ -38,9 +38,7 @@
v-flex
v-layout(justify-end)
v-btn.ma-0(
v-show=`(checkUpdateViewAccessById(view._id) ||
checkDeleteViewAccessById(view._id)) &&
isEditingMode`,
:v-show="checkViewEditButtonAccessById",
depressed,
small,
icon,
......@@ -96,6 +94,11 @@ export default {
}
},
},
checkViewEditButtonAccessById() {
return id => (this.checkUpdateViewAccessById(id) ||
this.checkDeleteViewAccessById(this.view._id)) &&
this.isEditingMode;
},
},
mounted() {
this.fetchVersion();
......
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