remove modals stack (#12423)

This commit is contained in:
Matteo Pagliazzi
2020-08-10 18:38:24 +02:00
committed by GitHub
parent 8c3a9c6dbc
commit d7ee1ec4f4
9 changed files with 26 additions and 128 deletions

View File

@@ -607,7 +607,7 @@ export default {
this.$emit('createChallenge', challenge);
this.resetWorkingChallenge();
this.$root.$emit('habitica::dismiss-modal', 'challenge-modal');
this.$root.$emit('bv::hide::modal', 'challenge-modal');
this.$router.push(`/challenges/${challenge._id}`);
},
async updateChallenge () {
@@ -628,7 +628,7 @@ export default {
const challenge = await this.$store.dispatch('challenges:updateChallenge', { challenge: challengeDetails });
this.$emit('updatedChallenge', { challenge });
this.resetWorkingChallenge();
this.$root.$emit('habitica::dismiss-modal', 'challenge-modal');
this.$root.$emit('bv::hide::modal', 'challenge-modal');
},
toggleCategorySelect () {
this.showCategorySelect = !this.showCategorySelect;