mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
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:
parent
c077b9563f
commit
b32cdb0880
|
@ -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) {
|
||||
|
|
|
@ -386,6 +386,7 @@ basic:
|
|||
enable_user_tips:
|
||||
client: true
|
||||
default: true
|
||||
refresh: true
|
||||
|
||||
login:
|
||||
invite_only:
|
||||
|
|
Loading…
Reference in New Issue
Block a user