Improved layout for items and sub-items

This commit is contained in:
Alicia Sykes
2022-04-06 00:04:47 +01:00
parent 151028c8cf
commit 57abd67cf9
5 changed files with 143 additions and 52 deletions

View File

@@ -77,6 +77,7 @@ export default {
posX: Number, // The X coordinate for positioning
posY: Number, // The Y coordinate for positioning
show: Boolean, // Should show or hide the menu
disableEdit: Boolean, // Disable editing for certain items
},
computed: {
isMenuDisabled() {
@@ -86,6 +87,7 @@ export default {
return this.$store.state.editMode;
},
isEditAllowed() {
if (this.disableEdit) return false;
return this.$store.getters.permissions.allowViewConfig;
},
},