[Update] Starting Up: Add loading animation when the software preparing, until backend is ready.

This commit is contained in:
Sakamoto Shiina
2024-11-14 15:48:38 +09:00
parent 2d77f15c41
commit 2c7bb53b64
10 changed files with 61 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import { translator_status } from "@ui_configs";
import { arrayToObject } from "@utils";
import {
useIsBackendReady,
useWindow,
useMessage,
useVolume,
@@ -61,6 +62,7 @@ import {
} from "@logics_configs";
export const useReceiveRoutes = () => {
const { updateIsBackendReady } = useIsBackendReady();
const { restoreWindowGeometry } = useWindow();
const { updateIsMainPageCompactMode } = useIsMainPageCompactMode();
const {
@@ -438,6 +440,7 @@ export const useReceiveRoutes = () => {
case 200:
if (parsed_data.endpoint === "/run/initialization_complete") {
initDataSyncProcess(parsed_data.result);
updateIsBackendReady(true);
break;
};
const route = routes[parsed_data.endpoint];