mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#3719 Benachrichtigungskanal wird nicht angezeigt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
330
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user