mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: bug fix
This commit is contained in:
1 parent
f22caf8c7b
commit
2d4d99c80c
2 files changed
+6
-4
No files matched your search
@@ -62,12 +62,14 @@ async function buildUI() {
|
|||||||
constant = JSON.stringify(payload);
|
constant = JSON.stringify(payload);
|
||||||
UiContextBase.constantVersion = hash = version;
|
UiContextBase.constantVersion = hash = version;
|
||||||
}
|
}
|
||||||
bus.on('app/started', buildUI);
|
function updateLogo() {
|
||||||
bus.on('system/setting', () => {
|
|
||||||
[UiContextBase.nav_logo_dark, UiContextBase.nav_logo_dark_2x] = system.getMany([
|
[UiContextBase.nav_logo_dark, UiContextBase.nav_logo_dark_2x] = system.getMany([
|
||||||
'ui-default.nav_logo_dark', 'ui-default.nav_logo_dark_2x',
|
'ui-default.nav_logo_dark', 'ui-default.nav_logo_dark_2x',
|
||||||
]);
|
]);
|
||||||
});
|
}
|
||||||
|
bus.on('app/started', buildUI);
|
||||||
|
bus.on('app/started', updateLogo);
|
||||||
|
bus.on('system/setting', updateLogo);
|
||||||
|
|
||||||
class WikiHelpHandler extends Handler {
|
class WikiHelpHandler extends Handler {
|
||||||
noCheckPermView = true;
|
noCheckPermView = true;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.38.28",
|
"version": "4.38.29",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user