[terms] don't keep showing the terms update banner after each login
This commit is contained in:
parent
9d8042d49a
commit
feb08abfe9
|
@ -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() {
|
||||
|
|
Reference in New Issue