Achievements Fixes (#11540)

* achievements fixes to timeout and modal

* fix string
This commit is contained in:
Matteo Pagliazzi
2019-11-13 21:59:48 +01:00
committed by GitHub
parent 3c4d8949de
commit 2842087a43
2 changed files with 17 additions and 5 deletions

View File

@@ -215,8 +215,12 @@ export default {
},
},
created () {
const timeout = this.notification && this.notification.timeout
? this.notification.timeout : true;
const timeout = (
this.notification
&& this.notification.timeout !== undefined
&& this.notification.timeout !== null
) ? this.notification.timeout : true;
if (timeout) {
let delay = this.notification.delay || 1500;
delay += this.$store.state.notificationStore.length * 1000;