UX: Replace staff notice icon with user-shield.

This commit is contained in:
Dan Ungureanu 2019-04-23 10:37:33 +03:00
parent 87cca0fb80
commit c048b71b29
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
3 changed files with 4 additions and 4 deletions

View File

@ -40,14 +40,14 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
if (currentUser.staff) { if (currentUser.staff) {
if (attrs.noticeType) { if (attrs.noticeType) {
contents.push({ contents.push({
icon: "asterisk", icon: "user-shield",
label: "post.controls.remove_post_notice", label: "post.controls.remove_post_notice",
action: "removeNotice", action: "removeNotice",
className: "btn-default remove-notice" className: "btn-default remove-notice"
}); });
} else { } else {
contents.push({ contents.push({
icon: "asterisk", icon: "user-shield",
label: "post.controls.add_post_notice", label: "post.controls.add_post_notice",
action: "addNotice", action: "addNotice",
className: "btn-default add-notice" className: "btn-default add-notice"

View File

@ -453,7 +453,7 @@ createWidget("post-notice", {
: attrs.name; : attrs.name;
let text, icon; let text, icon;
if (attrs.noticeType === "custom") { if (attrs.noticeType === "custom") {
icon = "asterisk"; icon = "user-shield";
text = attrs.noticeMessage; text = attrs.noticeMessage;
} else if (attrs.noticeType === "new_user") { } else if (attrs.noticeType === "new_user") {
icon = "hands-helping"; icon = "hands-helping";

View File

@ -20,7 +20,6 @@ module SvgSprite
"arrow-up", "arrow-up",
"arrows-alt-h", "arrows-alt-h",
"arrows-alt-v", "arrows-alt-v",
"asterisk",
"at", "at",
"backward", "backward",
"ban", "ban",
@ -185,6 +184,7 @@ module SvgSprite
"user-edit", "user-edit",
"user-plus", "user-plus",
"user-secret", "user-secret",
"user-shield",
"user-times", "user-times",
"users", "users",
"wrench" "wrench"