mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add new user option skip_new_user_tips. (#10437)
And add new site setting `default_other_skip_new_user_tips` in user preferences category.
This commit is contained in:
@@ -167,6 +167,7 @@ export default Mixin.create({
|
||||
"default_other_enable_defer",
|
||||
"default_other_dynamic_favicon",
|
||||
"default_other_like_notification_frequency",
|
||||
"default_other_skip_new_user_tips",
|
||||
"default_topics_automatic_unpin",
|
||||
"default_categories_watching",
|
||||
"default_categories_tracking",
|
||||
|
||||
@@ -43,7 +43,8 @@ export default Controller.extend({
|
||||
"homepage_id",
|
||||
"hide_profile_and_presence",
|
||||
"text_size",
|
||||
"title_count_mode"
|
||||
"title_count_mode",
|
||||
"skip_new_user_tips"
|
||||
];
|
||||
|
||||
if (makeDefault) {
|
||||
|
||||
@@ -318,7 +318,8 @@ const User = RestModel.extend({
|
||||
"hide_profile_and_presence",
|
||||
"text_size",
|
||||
"title_count_mode",
|
||||
"timezone"
|
||||
"timezone",
|
||||
"skip_new_user_tips"
|
||||
];
|
||||
|
||||
if (fields) {
|
||||
|
||||
@@ -103,6 +103,7 @@
|
||||
onChange=(action (mut model.user_option.title_count_mode))
|
||||
}}
|
||||
</div>
|
||||
{{preference-checkbox labelKey="user.skip_new_user_tips" checked=model.user_option.skip_new_user_tips class="pref-new-user-tips"}}
|
||||
</div>
|
||||
|
||||
{{plugin-outlet name="user-preferences-interface" args=(hash model=model save=(action "save"))}}
|
||||
|
||||
Reference in New Issue
Block a user