Start character sheet on the character details dialog instead of build
This commit is contained in:
@@ -156,9 +156,9 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
if (this.$store.state.showBuildDialog){
|
||||
this.$store.commit('setShowBuildDialog', false);
|
||||
this.showSlotDialog();
|
||||
if (this.$store.state.showDetailsDialog){
|
||||
this.$store.commit('setShowDetailsDialog', false);
|
||||
this.showCharacterForm();
|
||||
}
|
||||
},
|
||||
meteor: {
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
'setTabForCharacterSheet',
|
||||
{id: result, tab: 4}
|
||||
);
|
||||
this.$store.commit('setShowBuildDialog', true);
|
||||
this.$store.commit('setShowDetailsDialog', true);
|
||||
this.$router.push({ path: `/character/${result}`});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -13,7 +13,7 @@ const store = new Vuex.Store({
|
||||
rightDrawer: undefined,
|
||||
pageTitle: undefined,
|
||||
characterSheetTabs: {},
|
||||
showBuildDialog: false,
|
||||
showDetailsDialog: false,
|
||||
},
|
||||
getters: {
|
||||
// ...
|
||||
@@ -45,8 +45,8 @@ const store = new Vuex.Store({
|
||||
setTabForCharacterSheet(state, {tab, id}){
|
||||
Vue.set(state.characterSheetTabs, id, tab);
|
||||
},
|
||||
setShowBuildDialog(state, value){
|
||||
state.showBuildDialog = value;
|
||||
setShowDetailsDialog(state, value){
|
||||
state.showDetailsDialog = value;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user