Update plugins when icons are clicked
This commit is contained in:
parent
1a55be12cf
commit
dc2386bb4b
2 changed files with 10 additions and 0 deletions
|
|
@ -23,6 +23,11 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
clickCallback: {
|
||||||
|
type: Function,
|
||||||
|
required: false,
|
||||||
|
default: null
|
||||||
|
},
|
||||||
requireConnection: Boolean
|
requireConnection: Boolean
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -43,6 +48,9 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
setThisTab(event) {
|
setThisTab(event) {
|
||||||
this.$emit("set-tab", event, this.id);
|
this.$emit("set-tab", event, this.id);
|
||||||
|
if (this.clickCallback) {
|
||||||
|
this.clickCallback();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
:key="plugin.id"
|
:key="plugin.id"
|
||||||
:require-connection="plugin.requiresConnection"
|
:require-connection="plugin.requiresConnection"
|
||||||
:current-tab="currentTab"
|
:current-tab="currentTab"
|
||||||
|
:click-callback="updatePlugins"
|
||||||
@set-tab="setTab"
|
@set-tab="setTab"
|
||||||
>
|
>
|
||||||
<i class="material-icons">{{ plugin.icon || "extension" }}</i>
|
<i class="material-icons">{{ plugin.icon || "extension" }}</i>
|
||||||
|
|
@ -115,6 +116,7 @@
|
||||||
:is-task="form.isTask"
|
:is-task="form.isTask"
|
||||||
:submit-label="form.submitLabel"
|
:submit-label="form.submitLabel"
|
||||||
:schema="form.schema"
|
:schema="form.schema"
|
||||||
|
:emit-on-response="form.emitOnResponse"
|
||||||
@reloadForms="updatePlugins()"
|
@reloadForms="updatePlugins()"
|
||||||
/>
|
/>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue