mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
chore: update FontAwesome v6 icon search link (#4036)
This commit is contained in:
parent
e5f124b696
commit
1a12209fdc
|
@ -117,7 +117,7 @@ export default class EditTagModal extends FormModal<EditTagModalAttrs> {
|
||||||
<div className="Form-group">
|
<div className="Form-group">
|
||||||
<label>{app.translator.trans('flarum-tags.admin.edit_tag.icon_label')}</label>
|
<label>{app.translator.trans('flarum-tags.admin.edit_tag.icon_label')}</label>
|
||||||
<div className="helpText">
|
<div className="helpText">
|
||||||
{app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: <a href="https://fontawesome.com/icons?m=free" tabindex="-1" /> })}
|
{app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: <a href={app.refs.fontawesome} tabindex="-1" /> })}
|
||||||
</div>
|
</div>
|
||||||
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
|
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
|
||||||
</div>,
|
</div>,
|
||||||
|
|
|
@ -89,7 +89,7 @@ export default class EditGroupModal<CustomAttrs extends IEditGroupModalAttrs = I
|
||||||
<div className="Form-group">
|
<div className="Form-group">
|
||||||
<label>{app.translator.trans('core.admin.edit_group.icon_label')}</label>
|
<label>{app.translator.trans('core.admin.edit_group.icon_label')}</label>
|
||||||
<div className="helpText">
|
<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>
|
</div>
|
||||||
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
|
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
|
||||||
</div>,
|
</div>,
|
||||||
|
|
|
@ -248,6 +248,10 @@ export default class Application {
|
||||||
|
|
||||||
allowUserColorScheme!: boolean;
|
allowUserColorScheme!: boolean;
|
||||||
|
|
||||||
|
refs: Record<string, string> = {
|
||||||
|
fontawesome: 'https://fontawesome.com/v6/icons?o=r&m=free',
|
||||||
|
};
|
||||||
|
|
||||||
private _title: string = '';
|
private _title: string = '';
|
||||||
private _titleCount: number = 0;
|
private _titleCount: number = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user