[terms] don't keep showing the terms update banner after each login

This commit is contained in:
Andrea 2021-12-18 19:01:15 +01:00
parent 9d8042d49a
commit feb08abfe9
1 changed files with 5 additions and 1 deletions

View File

@ -205,7 +205,11 @@
impersonationActive: !!this.$cookies.get('impersonator'),
showTermsUpdate: this.$ulidTime(this.$user().id) < new Date(2021, 11, 13) / 1000 && !this.$cookies.get('termsUpdateDismissed'),
showTermsUpdate:
this.$ulidTime(this.$user().id) < new Date(2021, 11, 13) / 1000
&& !this.$cookies.get('termsUpdateDismissed')
&& (!this.$user().lastActive || this.$user().lastActive < +new Date(2021, 11, 18, 0, 0, 0))
,
}
},
async mounted() {