Open plugin dir when edit is clicked

This commit is contained in:
Jiiks 2018-01-25 14:53:37 +02:00
parent e66c1ce447
commit 271101ba0b
2 changed files with 10 additions and 2 deletions

View File

@ -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'],

View File

@ -20,7 +20,7 @@
<Button :onClick="() => reloadPlugin(plugin)">
<MiReload/>
</Button>
<Button>
<Button :onClick="editPlugin">
<MiEdit/>
</Button>
<Button type="err">