notification click always shows the modal, setting only controls the notification timeout (#10913)

This commit is contained in:
negue
2018-12-23 19:35:30 +01:00
committed by Matteo Pagliazzi
parent cfbfec34aa
commit b66904a3a7

View File

@@ -569,10 +569,8 @@ export default {
break; break;
case 'STREAK_ACHIEVEMENT': case 'STREAK_ACHIEVEMENT':
this.text(`${this.$t('streaks')}: ${this.user.achievements.streak}`, () => { this.text(`${this.$t('streaks')}: ${this.user.achievements.streak}`, () => {
if (!this.user.preferences.suppressModals.streak) { this.$root.$emit('bv::show::modal', 'streak');
this.$root.$emit('bv::show::modal', 'streak'); }, this.user.preferences.suppressModals.streak);
}
});
this.playSound('Achievement_Unlocked'); this.playSound('Achievement_Unlocked');
break; break;
case 'ULTIMATE_GEAR_ACHIEVEMENT': case 'ULTIMATE_GEAR_ACHIEVEMENT':