UX: use solid envelope icon for consistency (#19157)

This commit is contained in:
Kris 2022-11-22 19:46:35 -05:00 committed by GitHub
parent b0f380c4c7
commit d6ddb337c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 20 additions and 20 deletions

View File

@ -38,7 +38,7 @@
{{#if this.model.email}}
<a href="mailto:{{this.model.email}}">{{this.model.email}}</a>
{{else}}
<DButton @class="btn-default" @action={{route-action "checkEmail"}} @actionParam={{this.model}} @icon="far-envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
<DButton @class="btn-default" @action={{route-action "checkEmail"}} @actionParam={{this.model}} @icon="envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
{{/if}}
</div>
<div class="controls">
@ -65,7 +65,7 @@
{{i18n "user.email.no_secondary"}}
{{/if}}
{{else}}
<DButton @action={{route-action "checkEmail"}} @class="btn-default" @actionParam={{this.model}} @icon="far-envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
<DButton @action={{route-action "checkEmail"}} @class="btn-default" @actionParam={{this.model}} @icon="envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
{{/if}}
</div>
@ -99,7 +99,7 @@
{{#if this.associatedAccountsLoaded}}
{{this.associatedAccounts}}
{{else}}
<DButton @class="btn-default" @action={{route-action "checkEmail"}} @actionParam={{this.model}} @icon="far-envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
<DButton @class="btn-default" @action={{route-action "checkEmail"}} @actionParam={{this.model}} @icon="envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
{{/if}}
</div>
</div>
@ -561,7 +561,7 @@
{{#if this.ssoExternalEmail}}
<div class="value">{{this.ssoExternalEmail}}</div>
{{else}}
<DButton @class="btn-default" @action={{action "checkSsoEmail"}} @actionParam={{this.model}} @icon="far-envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
<DButton @class="btn-default" @action={{action "checkSsoEmail"}} @actionParam={{this.model}} @icon="envelope" @label="admin.users.check_email.text" @title="admin.users.check_email.title" />
{{/if}}
</div>
{{/if}}

View File

@ -34,8 +34,8 @@ const REPLACEMENTS = {
"notification.liked_2": "heart",
"notification.liked_many": "heart",
"notification.liked_consolidated": "heart",
"notification.private_message": "far-envelope",
"notification.invited_to_private_message": "far-envelope",
"notification.private_message": "envelope",
"notification.invited_to_private_message": "envelope",
"notification.invited_to_topic": "hand-point-right",
"notification.invitee_accepted": "user",
"notification.moved_post": "sign-out-alt",

View File

@ -28,7 +28,7 @@
{{#if @showPrivateMessages}}
<li class="private-messages">
<LinkTo @route="userPrivateMessages">
{{d-icon "far-envelope"}}
{{d-icon "envelope"}}
<span>{{i18n "user.private_messages"}}</span>
</LinkTo>
</li>

View File

@ -120,7 +120,7 @@
{{#if this.contactInfo}}
<section class="about contact">
<h3>{{d-icon "far-envelope"}} {{i18n "about.contact"}}</h3>
<h3>{{d-icon "envelope"}} {{i18n "about.contact"}}</h3>
<p>{{html-safe this.contactInfo}}</p>
</section>
{{/if}}

View File

@ -229,7 +229,7 @@
{{#if this.emailInEnabled}}
<section class="field category-email-in">
<label for="category-email-in">
{{d-icon "far-envelope"}}
{{d-icon "envelope"}}
{{i18n "category.email_in"}}
</label>
<TextField @id="category-email-in" @class="email-in" @value={{this.category.email_in}} />

View File

@ -7,7 +7,7 @@
<ReviewableTags @tags={{this.reviewable.payload.tags}} @tagName="" />
{{#if this.reviewable.payload.via_email}}
<a href {{on "click" this.showRawEmail}} class="show-raw-email">
{{d-icon "far-envelope" title="post.via_email"}}
{{d-icon "envelope" title="post.via_email"}}
</a>
{{/if}}
</ReviewableTopicLink>

View File

@ -9,7 +9,7 @@
{{/if}}
{{#each this.sortedTags as |tag|}}
<div class="tag-box">
{{discourse-tag tag.id description=tag.description isPrivateMessage=this.isPrivateMessage pmOnly=tag.pmOnly tagsForUser=this.tagsForUser}} {{#if tag.pmOnly}}{{d-icon "far-envelope"}}{{/if}}{{#if tag.totalCount}} <span class="tag-count">x {{tag.totalCount}}</span>{{/if}}
{{discourse-tag tag.id description=tag.description isPrivateMessage=this.isPrivateMessage pmOnly=tag.pmOnly tagsForUser=this.tagsForUser}} {{#if tag.pmOnly}}{{d-icon "envelope"}}{{/if}}{{#if tag.totalCount}} <span class="tag-count">x {{tag.totalCount}}</span>{{/if}}
</div>
{{/each}}
<div class="clearfix"></div>

View File

@ -196,11 +196,11 @@
{{/if}}
{{#if this.showCheckEmail}}
<h3 class="email">
{{d-icon "far-envelope" title="user.email.title"}}
{{d-icon "envelope" title="user.email.title"}}
{{#if this.user.email}}
{{this.user.email}}
{{else}}
<DButton @action={{action "checkEmail"}} @actionParam={{this.user}} @icon="far-envelope" @label="admin.users.check_email.text" @class="btn-primary" />
<DButton @action={{action "checkEmail"}} @actionParam={{this.user}} @icon="envelope" @label="admin.users.check_email.text" @class="btn-primary" />
{{/if}}
</h3>
{{/if}}

View File

@ -83,7 +83,7 @@
</div>
{{else}}
<div class="controls">
<DButton @action={{route-action "checkEmail"}} @class="btn-default" @actionParam={{this.model}} @title="admin.users.check_email.title" @icon="far-envelope" @label="admin.users.check_email.text" />
<DButton @action={{route-action "checkEmail"}} @class="btn-default" @actionParam={{this.model}} @title="admin.users.check_email.title" @icon="envelope" @label="admin.users.check_email.text" />
</div>
{{/if}}
</div>
@ -123,7 +123,7 @@
</table>
{{else}}
<div class="controls">
<DButton @action={{route-action "checkEmail"}} @actionParam={{this.model}} @title="admin.users.check_email.title" @icon="far-envelope" @label="admin.users.check_email.text" />
<DButton @action={{route-action "checkEmail"}} @actionParam={{this.model}} @title="admin.users.check_email.title" @icon="envelope" @label="admin.users.check_email.text" />
</div>
{{/if}}
</div>

View File

@ -199,7 +199,7 @@
{{#if this.model.email}}
{{this.model.email}}
{{else}}
<DButton @action={{route-action "checkEmail"}} @actionParam={{this.model}} @icon="far-envelope" @label="admin.users.check_email.text" @class="btn-primary" />
<DButton @action={{route-action "checkEmail"}} @actionParam={{this.model}} @icon="envelope" @label="admin.users.check_email.text" @class="btn-primary" />
{{/if}}
</dd>
</div>
@ -263,7 +263,7 @@
{{/if}}
{{#if this.showPrivateMessages}}
<li class="private-messages"><LinkTo @route="userPrivateMessages">{{d-icon "far-envelope"}}{{i18n 'user.private_messages'}}</LinkTo></li>
<li class="private-messages"><LinkTo @route="userPrivateMessages">{{d-icon "envelope"}}{{i18n 'user.private_messages'}}</LinkTo></li>
{{/if}}
{{#if this.canInviteToForum}}

View File

@ -504,7 +504,7 @@
}
}
.is-warning {
.d-icon-far-envelope {
.d-icon-envelope {
color: var(--danger);
}
}

View File

@ -142,7 +142,7 @@
<dt class="trust-level">{{i18n "user.trust_level"}}</dt><dd class="trust-level">{{this.dummy.user.trustLevel.name}}</dd>
<dt>{{i18n "user.email.title"}}</dt>
<dd title={{this.dummy.user.email}}>
<DButton @icon="far-envelope" @label="admin.users.check_email.text" @class="btn-primary" />
<DButton @icon="envelope" @label="admin.users.check_email.text" @class="btn-primary" />
</dd>
<dt class="groups">{{i18n "groups.title" count=this.dummy.user.displayGroups.length}}</dt>
<dd class="groups">
@ -237,7 +237,7 @@
<dt class="trust-level">{{i18n "user.trust_level"}}</dt><dd class="trust-level">{{this.dummy.user.trustLevel.name}}</dd>
<dt>{{i18n "user.email.title"}}</dt>
<dd title={{this.dummy.user.email}}>
<DButton @icon="far-envelope" @label="admin.users.check_email.text" @class="btn-primary" />
<DButton @icon="envelope" @label="admin.users.check_email.text" @class="btn-primary" />
</dd>
<dt class="groups">{{i18n "groups.title" count=this.dummy.user.displayGroups.length}}</dt>
<dd class="groups">