#4201 Bestellung ohne Konto können Kundendaten nicht bearbeiten

This commit is contained in:
Lorenz Hilpert
2023-07-19 11:33:13 +02:00
parent a7d50a9439
commit 88321928bf

View File

@@ -60,7 +60,9 @@ export class CustomerDetailsViewMainComponent extends ComponentStore<CustomerDet
map(([processId, customerId, isB2b]) => this._navigation.editRoute({ processId, customerId, isB2b }))
);
showEditButton$ = combineLatest([this._store.isOnlinekonto$]).pipe(map(([isOnlinekonto]) => !isOnlinekonto));
showEditButton$ = combineLatest([this._store.isOnlinekonto$, this._store.isBestellungOhneKonto$]).pipe(
map(([isOnlinekonto, isBestellungOhneKonto]) => !isOnlinekonto && !isBestellungOhneKonto)
);
hasKundenkarte$ = combineLatest([this._store.isKundenkarte$, this._store.isOnlineKontoMitKundenkarte$]).pipe(
map(([isKundenkarte, isOnlineKontoMitKundenkarte]) => isKundenkarte || isOnlineKontoMitKundenkarte)