Implements expense approval workflow

Adds an admin approval workflow for user-submitted expenses. This ensures that only valid expenses affect user balances.

The workflow includes pending expense states, admin approval/rejection actions, balance filtering, and UI updates.
This commit is contained in:
padreug 2025-10-23 00:50:15 +02:00
parent 018a074915
commit 3b371e3bec
4 changed files with 207 additions and 22 deletions

View file

@ -497,6 +497,7 @@ window.app = Vue.createApp({
async loadPendingExpenses() {
try {
if (!this.isSuperUser) return
if (!this.g.user.wallets[0]?.adminkey) return
const response = await LNbits.api.request(
'GET',