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

@@ -144,7 +144,7 @@ export default {
challengeId: this.challengeId,
winnerId: this.winner._id,
});
this.$root.$emit('habitica::dismiss-modal', 'close-challenge-modal');
this.$root.$emit('bv::hide::modal', 'close-challenge-modal');
this.$router.push('/challenges/myChallenges');
},
async deleteChallenge () {
@@ -153,7 +153,7 @@ export default {
challengeId: this.challengeId,
prize: this.prize,
});
this.$root.$emit('habitica::dismiss-modal', 'close-challenge-modal');
this.$root.$emit('bv::hide::modal', 'close-challenge-modal');
this.$router.push('/challenges/myChallenges');
},
},