1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

chore: update FontAwesome v6 icon search link (#4036)

This commit is contained in:
Ngô Quốc Đạt
2024-09-29 15:14:47 +07:00
committed by GitHub
parent e5f124b696
commit 1a12209fdc
3 changed files with 6 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ export default class EditGroupModal<CustomAttrs extends IEditGroupModalAttrs = I
<div className="Form-group">
<label>{app.translator.trans('core.admin.edit_group.icon_label')}</label>
<div className="helpText">
{app.translator.trans('core.admin.edit_group.icon_text', { a: <a href="https://fontawesome.com/v5/search?m=free" tabindex="-1" /> })}
{app.translator.trans('core.admin.edit_group.icon_text', { a: <a href={app.refs.fontawesome} tabindex="-1" /> })}
</div>
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
</div>,

View File

@@ -248,6 +248,10 @@ export default class Application {
allowUserColorScheme!: boolean;
refs: Record<string, string> = {
fontawesome: 'https://fontawesome.com/v6/icons?o=r&m=free',
};
private _title: string = '';
private _titleCount: number = 0;