UX: Move disable PM option under notifications in user preferences.

This commit is contained in:
Guo Xiang Tan 2017-10-26 16:20:58 +08:00
parent 1c7b4381cc
commit c650ef9138
4 changed files with 12 additions and 12 deletions

View File

@ -14,7 +14,6 @@ export default Ember.Controller.extend(PreferencesTabController, {
'enable_quoting',
'disable_jump_reply',
'automatically_unpin_topics',
'allow_private_messages',
];
if (makeDefault) {

View File

@ -10,7 +10,8 @@ export default Ember.Controller.extend(PreferencesTabController, {
'new_topic_duration_minutes',
'auto_track_topics_after_msecs',
'notification_level_when_replying',
'like_notification_frequency'
'like_notification_frequency',
'allow_private_messages',
],
@computed("model.watchedCategories", "model.trackedCategories", "model.mutedCategories")

View File

@ -10,16 +10,6 @@
</div>
{{/if}}
<div class="control-group private-messages">
<label class="control-label">{{i18n 'user.private_messages'}}</label>
<div class="controls">
{{preference-checkbox
labelKey="user.allow_private_messages"
checked=model.user_option.allow_private_messages}}
</div>
</div>
{{#if siteSettings.allow_user_locale}}
<div class="control-group pref-locale">
<label class="control-label">{{i18n 'user.locale.title'}}</label>

View File

@ -26,6 +26,16 @@
<div class="instructions">{{i18n 'user.desktop_notifications.each_browser_note'}}</div>
</div>
<div class="control-group private-messages">
<label class="control-label">{{i18n 'user.private_messages'}}</label>
<div class="controls">
{{preference-checkbox
labelKey="user.allow_private_messages"
checked=model.user_option.allow_private_messages}}
</div>
</div>
<div class="control-group muting">
<label class="control-label">{{i18n 'user.users'}}</label>
<div class="controls category-controls">