Skip to content

Commit

Permalink
Show loading state when loading data.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Apr 1, 2023
1 parent 0a81c7e commit 001bedc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ document.addEventListener('app-loaded', async () => {
}

async function showData(isComingFromEmptyState = false) {
window.app.showLoading();

const user = await checkForValidSession();

currency = user?.extra.currency || '$';
Expand Down Expand Up @@ -312,6 +314,8 @@ document.addEventListener('app-loaded', async () => {

expenseBudgetSelect.appendChild(element);
}

window.app.hideLoading();
}

async function navigateToMonth(month: string) {
Expand Down

0 comments on commit 001bedc

Please sign in to comment.