FIX: uses i18n for saved text (#18949)

This commit is contained in:
Joffrey JAFFEUX 2022-11-09 00:15:57 +01:00 committed by GitHub
parent d7844a797f
commit 4e6909cc5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
<div class="chat-form__control">
<ComboBox @content={{this.mutedOptions}} @value={{this.channel.current_user_membership.muted}} @valueProperty="value" @class="channel-settings-view__muted-selector" @onChange={{action (fn this.saveNotificationSettings "muted")}} />
{{#if this.savedMuted}}
<span class="channel-settings-view__saved">✓ Saved</span>
<span class="channel-settings-view__saved">✓ {{i18n "saved"}}</span>
{{/if}}
</div>
</div>
@ -19,7 +19,7 @@
<div class="chat-form__control">
<ComboBox @content={{this.notificationLevels}} @value={{this.channel.current_user_membership.desktop_notification_level}} @valueProperty="value" @class="channel-settings-view__desktop-notification-level-selector" @onChange={{action (fn this.saveNotificationSettings "desktop_notification_level")}} />
{{#if this.savedDesktopNotificationLevel}}
<span class="channel-settings-view__saved">✓ Saved</span>
<span class="channel-settings-view__saved">✓ {{i18n "saved"}}</span>
{{/if}}
</div>
</div>
@ -31,7 +31,7 @@
<div class="chat-form__control">
<ComboBox @content={{this.notificationLevels}} @value={{this.channel.current_user_membership.mobile_notification_level}} @valueProperty="value" @class="channel-settings-view__mobile-notification-level-selector" @onChange={{action (fn this.saveNotificationSettings "mobile_notification_level")}} />
{{#if this.savedMobileNotificationLevel}}
<span class="channel-settings-view__saved">✓ Saved</span>
<span class="channel-settings-view__saved">✓ {{i18n "saved"}}</span>
{{/if}}
</div>
</div>