#3719 Benachrichtigungskanal wird nicht angezeigt

This commit is contained in:
Lorenz Hilpert
2022-12-19 16:10:53 +01:00
parent 8718dd8231
commit 262e0c5e11
3 changed files with 170 additions and 182 deletions

View File

@@ -97,7 +97,7 @@
<div class="detail" data-detail-id="Benachrichtigung">
<div class="label">Benachrichtigung</div>
<div class="value">{{ ((notificationsChannel$ | async)?.selected | notificationsChannel) || '-' }}</div>
<div class="value">{{ (notificationsChannel | notificationsChannel) || '-' }}</div>
</div>
<div

View File

@@ -26,7 +26,7 @@ import { SharedGoodsInOutOrderDetailsComponent } from '../goods-in-out-order-det
styleUrls: ['goods-in-out-order-details-header.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class SharedGoodsInOutOrderDetailsHeaderComponent implements OnChanges, OnDestroy {
export class SharedGoodsInOutOrderDetailsHeaderComponent implements OnChanges {
@Output()
editClick = new EventEmitter<OrderItemListItemDTO>();
@@ -47,11 +47,7 @@ export class SharedGoodsInOutOrderDetailsHeaderComponent implements OnChanges, O
preferredPickUpDate$ = new BehaviorSubject<Date>(undefined);
notificationsChannel$ = new Subject<{
selected: NotificationChannel;
email: string;
mobile: string;
}>();
notificationsChannel: NotificationChannel = 0;
changeDateLoader$ = new BehaviorSubject<boolean>(false);
changePreferredDateLoader$ = new BehaviorSubject<boolean>(false);
@@ -92,18 +88,10 @@ export class SharedGoodsInOutOrderDetailsHeaderComponent implements OnChanges, O
}
}
ngOnDestroy(): void {
this.notificationsChannel$.complete();
}
computeNotificationChannel() {
const order = this.order;
this.notificationsChannel$.next({
selected: order?.notificationChannels ?? 0,
email: order?.buyer?.communicationDetails?.email ?? '',
mobile: order?.buyer?.communicationDetails?.mobile ?? '',
});
this.notificationsChannel = order?.notificationChannels ?? 0;
this.cdr.markForCheck();
}
async updatePickupDeadline(deadline: Date) {

330
package-lock.json generated
View File

File diff suppressed because it is too large Load Diff