Commit 65adab73 authored by Joel Collins's avatar Joel Collins
Browse files

Implemented unwatchStoreFunction

parent 951765f2
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -160,7 +160,8 @@ export default {
    return {
      plugins: {},
      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: {
    updatePlugins: function() {
      console.log("Updating plugin forms");