From e4b9ed6b935464b278c7618246a4b5b6354e4ad0 Mon Sep 17 00:00:00 2001 From: Kelv Date: Wed, 4 Dec 2024 10:18:17 +0800 Subject: [PATCH] DEV: Update deprecated Font Awesome icon names (#616) --- assets/javascripts/discourse/components/assignment.gjs | 2 +- .../discourse/components/topic-level-assign-menu.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/discourse/components/assignment.gjs b/assets/javascripts/discourse/components/assignment.gjs index afe17abb..1764efef 100644 --- a/assets/javascripts/discourse/components/assignment.gjs +++ b/assets/javascripts/discourse/components/assignment.gjs @@ -98,7 +98,7 @@ export default class Assignment extends Component { {{#if this.showAssigneeIeEmptyError}} - {{icon "exclamation-triangle"}} + {{icon "triangle-exclamation"}} {{i18n "discourse_assign.assign_modal.choose_assignee"}} {{/if}} diff --git a/assets/javascripts/discourse/components/topic-level-assign-menu.js b/assets/javascripts/discourse/components/topic-level-assign-menu.js index 7d21ecd3..54f08d57 100644 --- a/assets/javascripts/discourse/components/topic-level-assign-menu.js +++ b/assets/javascripts/discourse/components/topic-level-assign-menu.js @@ -112,7 +112,7 @@ function extractPostId(buttonId) { } function editAssignmentsButton() { - const icon = iconHTML("pencil-alt"); + const icon = iconHTML("pencil"); const label = I18n.t("discourse_assign.topic_level_menu.edit_assignments"); return { id: "reassign", @@ -138,7 +138,7 @@ function unassignFromTopicButton(topic) { topic.assigned_to_user?.username || topic.assigned_to_group?.name; const icon = topic.assigned_to_user ? avatarHtml(topic.assigned_to_user, "small") - : iconHTML("user-times"); + : iconHTML("user-xmark"); const label = I18n.t( "discourse_assign.topic_level_menu.unassign_from_topic", { username }