Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
DEV: Update more deprecated Font Awesome icon names (#361)
Browse files Browse the repository at this point in the history
* DEV: Update more deprecated Font Awesome icon names

* update other icon names
  • Loading branch information
tyb-talks authored Dec 6, 2024
1 parent a401ce8 commit ffafbd7
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class EncryptEnableDropdown extends DropdownSelectBoxComponent {
if (this.isEncryptEnabled) {
content.push({
id: "reset",
icon: "trash-alt",
icon: "trash-can",
name: I18n.t("encrypt.reset.title"),
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class EncryptPreferencesDropdown extends DropdownSelectBoxCompone
},
{
id: "managePaperKeys",
icon: "ticket-alt",
icon: "ticket-simple",
name: I18n.t("encrypt.manage_paper_keys.title"),
},
{
Expand All @@ -27,12 +27,12 @@ export default class EncryptPreferencesDropdown extends DropdownSelectBoxCompone
},
{
id: "rotate",
icon: "sync",
icon: "arrows-rotate",
name: I18n.t("encrypt.rotate.title"),
},
{
id: "reset",
icon: "trash-alt",
icon: "trash-can",
name: I18n.t("encrypt.reset.title"),
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<td>
<DButton
@icon="far-trash-alt"
@icon="far-trash-can"
@action={{fn this.delete key.label}}
@title="encrypt.manage_paper_keys.delete"
class="btn-danger pull-right"
Expand All @@ -43,7 +43,7 @@

<:footer>
<DButton
@icon="ticket-alt"
@icon="ticket-simple"
@action={{this.generatePaperKey}}
@label="encrypt.generate_paper_key.title"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<:footer>
<DButton
class="btn btn-danger"
@icon="trash-alt"
@icon="trash-can"
@label="encrypt.reset.title"
@action={{this.reset}}
@disabled={{this.disabled}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<:footer>
<DButton
class="btn btn-primary"
@icon="sync"
@icon="arrows-rotate"
@label={{this.label}}
@action={{this.rotate}}
@disabled={{this.disabled}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<p>{{i18n "encrypt.preferences.status_enabled"}}</p>
<fieldset class="control-group">
<DButton
@icon="times"
@icon="xmark"
@action={{action "deactivateEncrypt"}}
@label="encrypt.preferences.deactivate"
id="encrypt-deactivate"
Expand All @@ -31,7 +31,7 @@
/>
<DButton
id="encrypt-generate-paper-key"
@icon="ticket-alt"
@icon="ticket-simple"
@action={{action "generatePaperKey"}}
@label="encrypt.generate_paper_key.title"
/>
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/discourse/initializers/decrypt-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export default {
? "div.post-info.integrity-fail"
: "div.post-info.integrity-warn",
{ title: messages.join(" ") },
iconNode(isError ? "times" : "exclamation-triangle")
iconNode(isError ? "xmark" : "triangle-exclamation")
);
});

Expand Down
8 changes: 4 additions & 4 deletions plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
register_asset "stylesheets/colors.scss", :color_definitions
%w[
bars
exchange-alt
right-left
far-clipboard
file-export
file-import
lock
plus
discourse-trash-clock
ticket-alt
times
trash-alt
ticket-simple
xmark
trash-can
unlock
wrench
].each { |i| register_svg_icon(i) }
Expand Down

0 comments on commit ffafbd7

Please sign in to comment.