added status text to the initial loading screen

This commit is contained in:
Miodec 2022-01-01 17:58:35 +01:00
parent ec04272e99
commit d81c232d85
3 changed files with 11 additions and 3 deletions

View file

@ -31,6 +31,7 @@ export function toggleFilterDebug() {
export async function getDataAndInit() {
try {
$(".pageLoading .text").text("Downloading user data...");
console.log("getting account data");
await DB.initSnapshot();
} catch (e) {
@ -133,6 +134,7 @@ export async function getDataAndInit() {
}
// if($(".pageAccount").hasClass('active')) update();
// if ($(".pageLogin").hasClass("active")) UI.changePage("account");
$(".pageLoading .text").text("Applying settings...");
if (!UpdateConfig.changedBeforeDb) {
//config didnt change before db loaded
if (Config.localStorageConfig === null) {

View file

@ -180,9 +180,12 @@ key {
display: grid;
justify-content: center;
.preloader {
font-size: 2rem;
text-align: center;
justify-self: center;
color: var(--main-color);
.icon {
font-size: 2rem;
color: var(--main-color);
}
}
}

View file

@ -1056,7 +1056,10 @@
<div id="middle">
<div class="page pageLoading hidden">
<div class="preloader">
<i class="fas fa-fw fa-spin fa-circle-notch"></i>
<div class="icon">
<i class="fas fa-fw fa-spin fa-circle-notch"></i>
</div>
<div class="text">Authenticating...</div>
</div>
</div>
<div class="page pageTest hidden">