mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 12:19:45 +08:00
UX: hide confusing instructions when email_always is enabled
This commit is contained in:
parent
6b46092aa2
commit
802ff3b0d9
|
@ -184,7 +184,7 @@
|
||||||
{{preference-checkbox labelKey="user.email_direct" checked=model.user_option.email_direct}}
|
{{preference-checkbox labelKey="user.email_direct" checked=model.user_option.email_direct}}
|
||||||
<span class="pref-mailing-list-mode">{{preference-checkbox labelKey="user.mailing_list_mode" checked=model.user_option.mailing_list_mode}}</span>
|
<span class="pref-mailing-list-mode">{{preference-checkbox labelKey="user.mailing_list_mode" checked=model.user_option.mailing_list_mode}}</span>
|
||||||
{{preference-checkbox labelKey="user.email_always" checked=model.user_option.email_always}}
|
{{preference-checkbox labelKey="user.email_always" checked=model.user_option.email_always}}
|
||||||
|
{{#unless model.user_option.email_always}}
|
||||||
<div class='instructions'>
|
<div class='instructions'>
|
||||||
{{#if siteSettings.email_time_window_mins}}
|
{{#if siteSettings.email_time_window_mins}}
|
||||||
{{i18n 'user.email.frequency' count=siteSettings.email_time_window_mins}}
|
{{i18n 'user.email.frequency' count=siteSettings.email_time_window_mins}}
|
||||||
|
@ -192,6 +192,7 @@
|
||||||
{{i18n 'user.email.frequency_immediately'}}
|
{{i18n 'user.email.frequency_immediately'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
{{/unless}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user