mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 21:09:18 +08:00
smoothed out account loading bar
This commit is contained in:
parent
e688324215
commit
0afc86269c
2 changed files with 2 additions and 4 deletions
|
@ -224,8 +224,6 @@ export async function getDataAndInit() {
|
|||
if (UI.getActivePage() == "pageLoading") {
|
||||
LoadingPage.updateBar(100);
|
||||
UI.changePage("");
|
||||
} else {
|
||||
LoadingPage.updateBar(62.6);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -384,7 +382,7 @@ let totalSecondsFiltered = 0;
|
|||
export function update() {
|
||||
function cont() {
|
||||
LoadingPage.updateText("Displaying stats...");
|
||||
LoadingPage.updateBar(90);
|
||||
LoadingPage.updateBar(95);
|
||||
console.log("updating account page");
|
||||
ThemeColors.update();
|
||||
ChartController.accountHistory.updateColors();
|
||||
|
|
|
@ -58,7 +58,7 @@ export async function initSnapshot() {
|
|||
} else {
|
||||
LoadingPage.updateBar(13.3);
|
||||
}
|
||||
LoadingPage.updateText("Downloading data...");
|
||||
LoadingPage.updateText("Downloading user...");
|
||||
let userData = await axiosInstance.get("/user");
|
||||
userData = userData.data;
|
||||
snap.name = userData.name;
|
||||
|
|
Loading…
Reference in a new issue