From feb08abfe981e8d92a11de33c802b9bfb12bf5f0 Mon Sep 17 00:00:00 2001 From: Andrea Date: Sat, 18 Dec 2021 19:01:15 +0100 Subject: [PATCH] [terms] don't keep showing the terms update banner after each login --- components/Account.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/Account.vue b/components/Account.vue index 4c199ace..cb41d1f1 100644 --- a/components/Account.vue +++ b/components/Account.vue @@ -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() {