UX: Remove "Live Notifications" user profile section on iOS

This commit is contained in:
Penar Musaraj 2020-03-15 11:09:57 -04:00
parent 15ae3145ec
commit 39a7b93c4a
2 changed files with 11 additions and 6 deletions

View File

@ -85,6 +85,9 @@ export default Controller.extend({
}, },
{ name: I18n.t("user.new_topic_duration.last_here"), value: -2 } { name: I18n.t("user.new_topic_duration.last_here"), value: -2 }
]; ];
const caps = Discourse.__container__.lookup("capabilities:main");
this.isIOS = caps.isIOS;
}, },
actions: { actions: {

View File

@ -43,12 +43,14 @@
</div> </div>
</div> </div>
<div class="control-group desktop-notifications"> {{#unless isIOS}}
<label class="control-label">{{i18n 'user.desktop_notifications.label'}}</label> <div class="control-group desktop-notifications">
{{desktop-notification-config}} <label class="control-label">{{i18n 'user.desktop_notifications.label'}}</label>
<div class="instructions">{{i18n 'user.desktop_notifications.each_browser_note'}}</div> {{desktop-notification-config}}
{{plugin-outlet name="user-preferences-desktop-notifications" args=(hash model=model save=(action "save"))}} <div class="instructions">{{i18n 'user.desktop_notifications.each_browser_note'}}</div>
</div> {{plugin-outlet name="user-preferences-desktop-notifications" args=(hash model=model save=(action "save"))}}
</div>
{{/unless}}
{{#if siteSettings.enable_personal_messages}} {{#if siteSettings.enable_personal_messages}}
<div class="control-group private-messages"> <div class="control-group private-messages">