DEV: Update more deprecated Font Awesome icon names (#325)
* DEV: Update more deprecated Font Awesome icon names * update to square-check Co-authored-by: Jarek Radosz <jradosz@gmail.com> --------- Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
parent
0a8df2c7f9
commit
3443539725
|
@ -27,7 +27,7 @@ export default class SolvedAcceptAnswerButton extends Component {
|
||||||
class="post-action-menu__solved-unaccepted unaccepted"
|
class="post-action-menu__solved-unaccepted unaccepted"
|
||||||
...attributes
|
...attributes
|
||||||
@action={{this.acceptAnswer}}
|
@action={{this.acceptAnswer}}
|
||||||
@icon="far-check-square"
|
@icon="far-square-check"
|
||||||
@label={{if this.showLabel "solved.solution"}}
|
@label={{if this.showLabel "solved.solution"}}
|
||||||
@title="solved.accept_answer"
|
@title="solved.accept_answer"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -54,7 +54,7 @@ export default class SolvedUnacceptAnswerButton extends Component {
|
||||||
class="post-action-menu__solved-accepted accepted fade-out"
|
class="post-action-menu__solved-accepted accepted fade-out"
|
||||||
...attributes
|
...attributes
|
||||||
@action={{this.unacceptAnswer}}
|
@action={{this.unacceptAnswer}}
|
||||||
@icon="check-square"
|
@icon="square-check"
|
||||||
@label="solved.solution"
|
@label="solved.solution"
|
||||||
@title="solved.unaccept_answer"
|
@title="solved.unaccept_answer"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<UserStat
|
<UserStat
|
||||||
@value={{@outletArgs.model.solved_count}}
|
@value={{@outletArgs.model.solved_count}}
|
||||||
@label="solved.solution_summary"
|
@label="solved.solution_summary"
|
||||||
@icon="check-square"
|
@icon="square-check"
|
||||||
/>
|
/>
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -21,7 +21,7 @@ function initializeWithApi(api) {
|
||||||
|
|
||||||
TopicStatusIcons.addObject([
|
TopicStatusIcons.addObject([
|
||||||
"has_accepted_answer",
|
"has_accepted_answer",
|
||||||
"far-check-square",
|
"far-square-check",
|
||||||
"solved",
|
"solved",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ function customizeWidgetPostMenu(api) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
action: "acceptAnswer",
|
action: "acceptAnswer",
|
||||||
icon: "far-check-square",
|
icon: "far-square-check",
|
||||||
className: "unaccepted",
|
className: "unaccepted",
|
||||||
title: "solved.accept_answer",
|
title: "solved.accept_answer",
|
||||||
label: isOp ? "solved.solution" : null,
|
label: isOp ? "solved.solution" : null,
|
||||||
|
@ -146,7 +146,7 @@ function customizeWidgetPostMenu(api) {
|
||||||
if (attrs.can_unaccept_answer) {
|
if (attrs.can_unaccept_answer) {
|
||||||
return {
|
return {
|
||||||
action: "unacceptAnswer",
|
action: "unacceptAnswer",
|
||||||
icon: "check-square",
|
icon: "square-check",
|
||||||
title: "solved.unaccept_answer",
|
title: "solved.unaccept_answer",
|
||||||
className: "accepted fade-out",
|
className: "accepted fade-out",
|
||||||
position: "first",
|
position: "first",
|
||||||
|
@ -195,7 +195,7 @@ export default {
|
||||||
: formatUsername(username);
|
: formatUsername(username);
|
||||||
|
|
||||||
return i18n("solved.accepted_html", {
|
return i18n("solved.accepted_html", {
|
||||||
icon: iconHTML("check-square", { class: "accepted" }),
|
icon: iconHTML("square-check", { class: "accepted" }),
|
||||||
username_lower: username.toLowerCase(),
|
username_lower: username.toLowerCase(),
|
||||||
username: displayedUser,
|
username: displayedUser,
|
||||||
post_path: `${this.url}/${postNumber}`,
|
post_path: `${this.url}/${postNumber}`,
|
||||||
|
@ -214,7 +214,7 @@ export default {
|
||||||
openTag: "span",
|
openTag: "span",
|
||||||
closeTag: "span",
|
closeTag: "span",
|
||||||
title: i18n("topic_statuses.solved.help"),
|
title: i18n("topic_statuses.solved.help"),
|
||||||
icon: "far-check-square",
|
icon: "far-square-check",
|
||||||
key: "solved",
|
key: "solved",
|
||||||
});
|
});
|
||||||
} else if (
|
} else if (
|
||||||
|
@ -238,7 +238,7 @@ export default {
|
||||||
withPluginApi("0.8.10", (api) => {
|
withPluginApi("0.8.10", (api) => {
|
||||||
api.replaceIcon(
|
api.replaceIcon(
|
||||||
"notification.solved.accepted_notification",
|
"notification.solved.accepted_notification",
|
||||||
"check-square"
|
"square-check"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#topic-title .d-icon-far-check-square {
|
#topic-title .d-icon-far-square-check {
|
||||||
margin-top: 0.25em;
|
margin-top: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ SQL
|
||||||
|
|
||||||
Badge.seed(:name) do |badge|
|
Badge.seed(:name) do |badge|
|
||||||
badge.name = "Solved 1"
|
badge.name = "Solved 1"
|
||||||
badge.default_icon = "check-square"
|
badge.default_icon = "square-check"
|
||||||
badge.badge_type_id = BadgeType::Bronze
|
badge.badge_type_id = BadgeType::Bronze
|
||||||
badge.default_badge_grouping_id = BadgeGrouping::Community
|
badge.default_badge_grouping_id = BadgeGrouping::Community
|
||||||
badge.query = first_solution_query
|
badge.query = first_solution_query
|
||||||
|
@ -51,7 +51,7 @@ end
|
||||||
].each do |name, level, count|
|
].each do |name, level, count|
|
||||||
Badge.seed(:name) do |badge|
|
Badge.seed(:name) do |badge|
|
||||||
badge.name = name
|
badge.name = name
|
||||||
badge.default_icon = "check-square"
|
badge.default_icon = "square-check"
|
||||||
badge.badge_type_id = level
|
badge.badge_type_id = level
|
||||||
badge.default_badge_grouping_id = BadgeGrouping::Community
|
badge.default_badge_grouping_id = BadgeGrouping::Community
|
||||||
badge.query = solved_query_with_count(count)
|
badge.query = solved_query_with_count(count)
|
||||||
|
|
Loading…
Reference in New Issue