mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: switch to injectUI
This commit is contained in:
4 files changed
+7
-8
No files matched your search
@@ -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' });
|
||||
}
|
||||
Reference in new issue
Block a user