Skip to content

Commit

Permalink
FIX: Refresh site when enable_user_tips changes (#21489)
Browse files Browse the repository at this point in the history
Without refresh, no user tip will be shown and Site.user_tips is not
properly populated either.
  • Loading branch information
nbianca committed May 12, 2023
1 parent c077b95 commit b32cdb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions config/site_settings.yml
Expand Up @@ -386,6 +386,7 @@ basic:
enable_user_tips:
client: true
default: true
refresh: true

login:
invite_only:
Expand Down

0 comments on commit b32cdb0

Please sign in to comment.