Implemented unwatchStoreFunction
This commit is contained in:
parent
951765f2c1
commit
65adab73ee
1 changed files with 10 additions and 1 deletions
|
|
@ -160,7 +160,8 @@ export default {
|
||||||
return {
|
return {
|
||||||
plugins: {},
|
plugins: {},
|
||||||
currentTab: "status",
|
currentTab: "status",
|
||||||
showControlBar: true
|
showControlBar: true,
|
||||||
|
unwatchStoreFunction: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -200,6 +201,14 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
beforeDestroy() {
|
||||||
|
// Then we call that function here to unwatch
|
||||||
|
if (this.unwatchStoreFunction) {
|
||||||
|
this.unwatchStoreFunction();
|
||||||
|
this.unwatchStoreFunction = null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
updatePlugins: function() {
|
updatePlugins: function() {
|
||||||
console.log("Updating plugin forms");
|
console.log("Updating plugin forms");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue