FIX: Refresh site when enable_user_tips changes (#21489)

Without refresh, no user tip will be shown and Site.user_tips is not
properly populated either.
This commit is contained in:
Bianca Nenciu 2023-05-12 17:44:41 +02:00 committed by GitHub
parent c077b9563f
commit b32cdb0880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,10 @@ export default {
@bind
onMessage(seenUserTips) {
if (!this.site.user_tips) {
return;
}
this.currentUser.set("seen_popups", seenUserTips);
if (!this.currentUser.user_option) {

View File

@ -386,6 +386,7 @@ basic:
enable_user_tips:
client: true
default: true
refresh: true
login:
invite_only: