Skip to content

Commit

Permalink
fix: dismiss fiscal loading indicator once loaded
Browse files Browse the repository at this point in the history
The loading indicator on the fiscal year closing balances page would
load indefinitely due to a swapped boolean.  The variables have been
changed so that the loading indicator is reset once the grid is
populated.
  • Loading branch information
jniles committed May 18, 2019
1 parent c33886f commit 6b5bd8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion client/src/modules/fiscal/fiscal.closingBalance.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
style="height : 800px;"
ui-grid="FiscalCBCtrl.gridOptions">


<bh-grid-loading-indicator
loading-state="FiscalCBCtrl.loading"
empty-state="FiscalCBCtrl.gridOptions.data.length === 0"
Expand Down
4 changes: 2 additions & 2 deletions client/src/modules/fiscal/fiscal.closingBalance.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function FiscalClosingBalanceController(
* Load the balance until a given period.
*/
function loadFinalBalance(showHiddenAccounts) {
vm.loading = false;
vm.loading = true;
vm.hasError = false;
Fiscal.getClosingBalance(fiscalYearId)
.then(data => {
Expand Down Expand Up @@ -193,7 +193,7 @@ function FiscalClosingBalanceController(
Notify.handleError(err);
})
.finally(() => {
vm.loading = true;
vm.loading = false;
});
}

Expand Down

0 comments on commit 6b5bd8f

Please sign in to comment.