Improves super user balance and journal views

For super users, the balance view now displays the net position
(liabilities - receivables) of the Castle. The journal view
shows all entries across all users.

The settings are now loaded first to determine if the user is a
super user.
This commit is contained in:
padreug 2025-10-22 17:51:41 +02:00
parent d7b5259b74
commit 3a26d963dc
2 changed files with 22 additions and 9 deletions

View file

@ -551,12 +551,13 @@ window.app = Vue.createApp({
}
},
async created() {
// Load settings first to determine if user is super user
await this.loadSettings()
await this.loadUserWallet()
await this.loadBalance()
await this.loadTransactions()
await this.loadAccounts()
await this.loadCurrencies()
await this.loadSettings()
await this.loadUserWallet()
// Load users if super user (for receivable dialog)
if (this.isSuperUser) {
await this.loadUsers()