diff --git a/static/app.js b/static/app.js index 6b3167b..fec3668 100644 --- a/static/app.js +++ b/static/app.js @@ -84,19 +84,21 @@ function showDeviceAdditionView() { } } -function showDashboardView() { +async function showDashboardView() { if (window.location.pathname !== '/auth/profile') { window.location.href = '/auth/profile' return } showView('profileView') clearStatus('profileStatus') - loadUserInfo().then(() => { + + try { + await loadUserInfo() updateUserInfo() - loadCredentials() - }).catch(error => { + await loadCredentials() + } catch (error) { showStatus('profileStatus', `Failed to load user info: ${error.message}`, 'error') - }) + } } // ======================================== diff --git a/static/dashboard.html b/static/dashboard.html deleted file mode 100644 index 51fef62..0000000 --- a/static/dashboard.html +++ /dev/null @@ -1,106 +0,0 @@ - - -
-Loading credentials...
-