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:
Vinoth Kannan
2020-08-14 19:10:56 +05:30
committed by GitHub
parent 6287c8e171
commit 476d26159a
19 changed files with 42 additions and 8 deletions

View File

@@ -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",

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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"))}}