Removed unused story files
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
<template>
|
||||
<dialog-base>
|
||||
<v-toolbar-title slot="toolbar">
|
||||
Test Dialog
|
||||
</v-toolbar-title>
|
||||
<div>
|
||||
<v-btn
|
||||
data-id="btn"
|
||||
@click="openDialog('btn')"
|
||||
>
|
||||
Open Dialog
|
||||
</v-btn>
|
||||
<v-btn
|
||||
fab
|
||||
data-id="fab"
|
||||
color="green"
|
||||
@click="openDialog('fab')"
|
||||
>
|
||||
Open Dialog
|
||||
</v-btn>
|
||||
</div>
|
||||
</dialog-base>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import store from '/imports/ui/vuexStore.js';
|
||||
import DialogBase from '/imports/ui/dialogStack/DialogBase.vue';
|
||||
const component = {
|
||||
methods: {
|
||||
openDialog(elementId){
|
||||
store.commit('pushDialogStack', {
|
||||
component,
|
||||
elementId,
|
||||
});
|
||||
}
|
||||
},
|
||||
components: {
|
||||
DialogBase,
|
||||
},
|
||||
};
|
||||
export default component;
|
||||
</script>
|
||||
@@ -1,26 +0,0 @@
|
||||
<template lang="html">
|
||||
<v-card-text>
|
||||
<v-layout align-center justify-center>
|
||||
<v-btn @click="openDialog('btn')" data-id="btn">
|
||||
Open Dialog
|
||||
</v-btn>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DialogBaseStory from '/imports/ui/dialogStack/DialogBase.Story.vue';
|
||||
export default {
|
||||
methods: {
|
||||
openDialog(elementId){
|
||||
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,
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user