From 6082d37177bd0a9a504e2505f6479b938f6e557f Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 25 Mar 2020 13:10:46 +0100 Subject: [PATCH] Clean up code --- client/src/plugins/modal.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/client/src/plugins/modal.js b/client/src/plugins/modal.js index 444019e0..2a658c2c 100644 --- a/client/src/plugins/modal.js +++ b/client/src/plugins/modal.js @@ -7,11 +7,7 @@ class ModalStore { this.vm = new Vue({ data: () => ({ component: '', - payload: {}, - _resolve: () => { - }, - _reject: () => { - } + payload: {} }) }); } @@ -19,25 +15,15 @@ class ModalStore { get state() { return this.vm.$data; } - - // set component(c) { - // console.log(c); - // this.vm.$data.component = c; - // } } const ModalPlugin = { - // Store: ModalStore, install(Vue, options) { const store = new ModalStore({}); const reset = () => { store.state.component = ''; store.state.payload = {}; - store.state._resolve = () => { - }; - store.state._reject = () => { - }; }; Vue.prototype.$modal = { @@ -64,7 +50,6 @@ const ModalPlugin = { }, _reject: () => { }, - }; } };