mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#1588 Import angepasst
This commit is contained in:
committed by
Lorenz Hilpert
parent
cfcc6c8cce
commit
eb936c7d3f
@@ -1,10 +1,9 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { NotificationChannel } from '@cmf/core';
|
||||
import { ApplicationService } from '@core/application';
|
||||
import { DomainCheckoutService } from '@domain/checkout';
|
||||
import { BuyerDTO } from '@swagger/checkout';
|
||||
import { BuyerDTO, NotificationChannel } from '@swagger/checkout';
|
||||
import { CustomerDTO } from '@swagger/crm';
|
||||
import { Observable, Subject, BehaviorSubject } from 'rxjs';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { switchMap, map, first } from 'rxjs/operators';
|
||||
|
||||
@Injectable()
|
||||
@@ -26,13 +25,9 @@ export class NotificationChannelsService {
|
||||
switchMap((processId) => this.domainCheckoutService.getNotificationChannels({ processId }))
|
||||
);
|
||||
|
||||
notificationChannelEmail$ = this.notificationChannels$.pipe(
|
||||
map((notificationChannels) => (notificationChannels & NotificationChannel.Email) === NotificationChannel.Email)
|
||||
);
|
||||
notificationChannelEmail$ = this.notificationChannels$.pipe(map((notificationChannels) => (notificationChannels & 1) === 1));
|
||||
|
||||
notificationChannelMobile$ = this.notificationChannels$.pipe(
|
||||
map((notificationChannels) => (notificationChannels & NotificationChannel.SMS) === NotificationChannel.SMS)
|
||||
);
|
||||
notificationChannelMobile$ = this.notificationChannels$.pipe(map((notificationChannels) => (notificationChannels & 2) === 2));
|
||||
|
||||
constructor(private domainCheckoutService: DomainCheckoutService, private applicationService: ApplicationService) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user