Fixed an issue caused by storing components on the store, added ability dialog
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user