fix(dashboard): detect voided rows by tag, not by flag char
The admin transactions table assumed voided entries used flag='x', but the libra reject convention keeps the '!' flag and appends a 'voided' tag. Without this, the dashboard rendered voided rows as orange 'Pending' once they started reaching it. Detect via tag and give the voided icon precedence over the flag-based branch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1c89e69030
commit
781059af5f
2 changed files with 8 additions and 4 deletions
|
|
@ -1707,6 +1707,10 @@ window.app = Vue.createApp({
|
|||
if (entry.tags && entry.tags.includes('equity-contribution')) return true
|
||||
if (entry.account && entry.account.includes('Equity')) return true
|
||||
return false
|
||||
},
|
||||
isVoided(entry) {
|
||||
// Voided entries keep '!' flag and carry a 'voided' tag (libra convention).
|
||||
return Array.isArray(entry.tags) && entry.tags.includes('voided')
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
|
|
|
|||
|
|
@ -497,7 +497,10 @@
|
|||
<!-- Status Flag Column -->
|
||||
<template v-slot:body-cell-flag="props">
|
||||
<q-td :props="props">
|
||||
<q-icon v-if="props.row.flag === '*'" name="check_circle" color="positive" size="sm">
|
||||
<q-icon v-if="isVoided(props.row)" name="cancel" color="grey" size="sm">
|
||||
<q-tooltip>Voided</q-tooltip>
|
||||
</q-icon>
|
||||
<q-icon v-else-if="props.row.flag === '*'" name="check_circle" color="positive" size="sm">
|
||||
<q-tooltip>Cleared</q-tooltip>
|
||||
</q-icon>
|
||||
<q-icon v-else-if="props.row.flag === '!'" name="pending" color="orange" size="sm">
|
||||
|
|
@ -506,9 +509,6 @@
|
|||
<q-icon v-else-if="props.row.flag === '#'" name="flag" color="red" size="sm">
|
||||
<q-tooltip>Flagged</q-tooltip>
|
||||
</q-icon>
|
||||
<q-icon v-else-if="props.row.flag === 'x'" name="cancel" color="grey" size="sm">
|
||||
<q-tooltip>Voided</q-tooltip>
|
||||
</q-icon>
|
||||
</q-td>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue