Fixed an issue caused by storing components on the store, added ability dialog

This commit is contained in:
Stefan Zermatten
2019-01-24 16:45:02 +02:00
parent 8c0edfaa93
commit 77d2f87373
6 changed files with 80 additions and 14 deletions

View File

@@ -10,11 +10,13 @@
<script>
import DialogBaseStory from '/imports/ui/dialogStack/DialogBase.Story.vue';
import store from "/imports/ui/vuexStore.js";
export default {
methods: {
openDialog(elementId){
store.commit("pushDialogStack", {
this.$store.commit("pushDialogStack", {
// DO NOT store your component in the store like this outside the storybook
// You should register the dialog component in DialogComponentIndex.js
// and commit it to the store as a string: "dialog-base-story"
component: DialogBaseStory,
elementId,
});