Show account name on the dashboard's recent transactions

If a transaction description is brief, it is useful to provide context by showing
the account name.

Note: this commit isn't ideal since it doesn't show all the accounts involved for
a given transaction. This might however be good enough for now.
This commit is contained in:
Alok Menghrajani
2023-11-20 18:17:46 +01:00
parent 7cf5c4a392
commit 7a3deb4006
2 changed files with 15 additions and 1 deletions

View File

@@ -59,7 +59,8 @@
{{recentTx.tx.date | datetz:"M/D":org.timezone}}
</div>
<div class="col-5 col-md-6 description">
{{recentTx.tx.description}}
<div class="primary">{{recentTx.tx.description}}</div>
<div class="additional">{{recentTx.account.fullName}}</div>
</div>
<div class="col-4 col-md-4 amount" [ngClass]="{'negative': recentTx.split.amount > 0}">
{{-recentTx.split.amount | currencyFormat:recentTx.account.precision:recentTx.account.currency}}

View File

@@ -41,6 +41,19 @@
.expanded .hidden {
display: flex
}
.row {
padding-bottom: 1em;
.description {
.primary:empty::after {
content: ".";
visibility: hidden;
}
.additional {
font-size: small;
color: $black;
}
}
}
}
@media (max-width: 767px) {