diff --git a/src/components/LinkItems/ContextMenu.vue b/src/components/LinkItems/ContextMenu.vue
index 68378093..3e8de908 100644
--- a/src/components/LinkItems/ContextMenu.vue
+++ b/src/components/LinkItems/ContextMenu.vue
@@ -1,12 +1,24 @@
-
@@ -29,9 +41,28 @@ export default {
WorkspaceOpenIcon,
},
props: {
- posX: Number,
- posY: Number,
- show: Boolean,
+ posX: Number, // The X coordinate for positioning
+ posY: Number, // The Y coordinate for positioning
+ show: Boolean, // Should show or hide the menu
+ },
+ data() {
+ return {
+ menuEnabled: !this.isMenuDisabled(), // Specifies if the context menu should be used
+ };
+ },
+ methods: {
+ /* Called on item click, emits an event up to Item */
+ /* in order to launch the current app to a given target */
+ launch(target) {
+ this.$emit('contextItemClick', target);
+ },
+ /* Checks if the user as disabled context menu in config */
+ isMenuDisabled() {
+ if (this.config && this.config.appConfig) {
+ return !!this.config.appConfig.disableContextMenu;
+ }
+ return false;
+ },
},
};
diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue
index 5c5cf412..6bc9ba40 100644
--- a/src/components/LinkItems/Item.vue
+++ b/src/components/LinkItems/Item.vue
@@ -3,7 +3,7 @@