mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
|
@bind
|
||||||
onMessage(seenUserTips) {
|
onMessage(seenUserTips) {
|
||||||
|
if (!this.site.user_tips) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.currentUser.set("seen_popups", seenUserTips);
|
this.currentUser.set("seen_popups", seenUserTips);
|
||||||
|
|
||||||
if (!this.currentUser.user_option) {
|
if (!this.currentUser.user_option) {
|
||||||
|
@ -386,6 +386,7 @@ basic:
|
|||||||
enable_user_tips:
|
enable_user_tips:
|
||||||
client: true
|
client: true
|
||||||
default: true
|
default: true
|
||||||
|
refresh: true
|
||||||
|
|
||||||
login:
|
login:
|
||||||
invite_only:
|
invite_only:
|
||||||
|
Loading…
Reference in New Issue
Block a user