core: switch to injectUI

This commit is contained in:
undefined committed 2024-02-23 07:15:57 +08:00
1 parent bdb86dd9f6
commit e44054aa40
4 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -22,5 +22,5 @@ class ProblemImportHydroHandler extends Handler {
export async function apply(ctx: Context) {
ctx.Route('problem_import_hydro', '/problem/import/hydro', ProblemImportHydroHandler, PERM.PERM_CREATE_PROBLEM);
ctx.inject('ProblemAdd', 'problem_import_hydro', { icon: 'copy', text: 'Import From Hydro' });
ctx.injectUI('ProblemAdd', 'problem_import_hydro', { icon: 'copy', text: 'Import From Hydro' });
}