Update plugins when icons are clicked

This commit is contained in:
Joel Collins 2020-02-18 17:14:32 +00:00
parent 1a55be12cf
commit dc2386bb4b
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,11 @@ export default {
type: String,
required: true
},
clickCallback: {
type: Function,
required: false,
default: null
},
requireConnection: Boolean
},
@ -43,6 +48,9 @@ export default {
methods: {
setThisTab(event) {
this.$emit("set-tab", event, this.id);
if (this.clickCallback) {
this.clickCallback();
}
}
}
};