Start character sheet on the character details dialog instead of build

This commit is contained in:
Stefan Zermatten
2021-04-13 11:06:46 +02:00
parent 4abd689c9f
commit cfb1414494
3 changed files with 7 additions and 7 deletions

View File

@@ -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: {

View File

@@ -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}`});
}
});

View File

@@ -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;
},
},
});