mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-16 05:13:36 +00:00
feat: seperated host manager into 2 rail tabs, electron fixes for auth, shared credential fixes
This commit is contained in:
@@ -865,6 +865,11 @@ export let dockerApi: AxiosInstance;
|
||||
// Pre-initialize with default values to avoid undefined errors during early mounting
|
||||
initializeApiInstances();
|
||||
|
||||
let _resolveAppReady!: () => void;
|
||||
export const appReadyPromise: Promise<void> = new Promise((resolve) => {
|
||||
_resolveAppReady = resolve;
|
||||
});
|
||||
|
||||
function initializeApp() {
|
||||
if (isElectron()) {
|
||||
Promise.all([getServerConfig(), getEmbeddedServerStatus()])
|
||||
@@ -895,9 +900,13 @@ function initializeApp() {
|
||||
error,
|
||||
);
|
||||
initializeApiInstances();
|
||||
})
|
||||
.finally(() => {
|
||||
_resolveAppReady();
|
||||
});
|
||||
} else {
|
||||
initializeApiInstances();
|
||||
_resolveAppReady();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user