Modal popup fixes (#10080)

* Added validation for modal stack

* Lint fixes
This commit is contained in:
Keith Holliday
2018-03-02 12:43:22 -07:00
committed by GitHub
parent 716393cf91
commit e7bc505b88
2 changed files with 77 additions and 47 deletions

View File

@@ -204,6 +204,7 @@ export default {
},
watch: {
userHp (after, before) {
if (this.user.needsCron) return;
if (after <= 0) {
this.playSound('Death');
this.$root.$emit('bv::show::modal', 'death');
@@ -252,6 +253,7 @@ export default {
this.showLevelUpNotifications(after);
},
userClassSelect (after) {
if (this.user.needsCron) return;
if (!after) return;
this.$root.$emit('bv::show::modal', 'choose-class');
// @TODO: {controller:'UserCtrl', keyboard:false, backdrop:'static'}