mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 2046: feature(crm-data-access): Update Transactions Endpoint
feature(crm-data-access): Update Transactions Endpoint Ref: #5336
This commit is contained in:
committed by
Lorenz Hilpert
parent
bb717975a0
commit
4107641e75
@@ -28,7 +28,7 @@
|
||||
}
|
||||
|
||||
<crm-customer-card-transactions
|
||||
[cardCode]="activeCardCode ?? firstCardCode()"
|
||||
[customerId]="customerId()"
|
||||
class="mt-8"
|
||||
(reload)="reloadCardTransactionsAndCards()"
|
||||
/>
|
||||
|
||||
@@ -72,15 +72,6 @@ export class KundenkarteMainViewComponent implements OnDestroy {
|
||||
*/
|
||||
readonly customerId = toSignal(this.customerId$);
|
||||
|
||||
/**
|
||||
* Get the first card code
|
||||
*/
|
||||
readonly firstCardCode = computed(() => {
|
||||
const cards = this.#bonusCardsResource.resource.value();
|
||||
const firstCard = cards?.[0];
|
||||
return firstCard?.code;
|
||||
});
|
||||
|
||||
/**
|
||||
* Get the first active card code
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user