diff --git a/client/src/modules/ui/components/bd/PluginCard.vue b/client/src/modules/ui/components/bd/PluginCard.vue index 9d1841c6..bbb7ed8e 100644 --- a/client/src/modules/ui/components/bd/PluginCard.vue +++ b/client/src/modules/ui/components/bd/PluginCard.vue @@ -13,7 +13,15 @@ function showSettings() { this.settingsOpen = true; } - const methods = { }; + function editPlugin() { + try { + window.require('electron').shell.openItem(this.plugin.pluginPath); + } catch (err) { + console.log(err); + } + } + + const methods = { editPlugin }; export default { props: ['plugin', 'togglePlugin', 'reloadPlugin', 'showSettings'], diff --git a/client/src/modules/ui/components/bd/templates/PluginCard.html b/client/src/modules/ui/components/bd/templates/PluginCard.html index 0b82de6a..51cb8bf0 100644 --- a/client/src/modules/ui/components/bd/templates/PluginCard.html +++ b/client/src/modules/ui/components/bd/templates/PluginCard.html @@ -20,7 +20,7 @@ -