From 1a12209fdcde19e3cdbbb3ec483ca29793057991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Qu=E1=BB=91c=20=C4=90=E1=BA=A1t?= Date: Sun, 29 Sep 2024 15:14:47 +0700 Subject: [PATCH] chore: update FontAwesome v6 icon search link (#4036) --- extensions/tags/js/src/admin/components/EditTagModal.tsx | 2 +- framework/core/js/src/admin/components/EditGroupModal.tsx | 2 +- framework/core/js/src/common/Application.tsx | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/tags/js/src/admin/components/EditTagModal.tsx b/extensions/tags/js/src/admin/components/EditTagModal.tsx index d53ba2fa1..d6a45158f 100644 --- a/extensions/tags/js/src/admin/components/EditTagModal.tsx +++ b/extensions/tags/js/src/admin/components/EditTagModal.tsx @@ -117,7 +117,7 @@ export default class EditTagModal extends FormModal {
- {app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: })} + {app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: })}
, diff --git a/framework/core/js/src/admin/components/EditGroupModal.tsx b/framework/core/js/src/admin/components/EditGroupModal.tsx index 123d40e11..b9be5e788 100644 --- a/framework/core/js/src/admin/components/EditGroupModal.tsx +++ b/framework/core/js/src/admin/components/EditGroupModal.tsx @@ -89,7 +89,7 @@ export default class EditGroupModal
- {app.translator.trans('core.admin.edit_group.icon_text', { a: })} + {app.translator.trans('core.admin.edit_group.icon_text', { a: })}
, diff --git a/framework/core/js/src/common/Application.tsx b/framework/core/js/src/common/Application.tsx index f607f06f5..ecf917644 100644 --- a/framework/core/js/src/common/Application.tsx +++ b/framework/core/js/src/common/Application.tsx @@ -248,6 +248,10 @@ export default class Application { allowUserColorScheme!: boolean; + refs: Record = { + fontawesome: 'https://fontawesome.com/v6/icons?o=r&m=free', + }; + private _title: string = ''; private _titleCount: number = 0;