mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#2284 Packstück Id generieren ausblenden wenn ZL
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<app-button [outline]="true" (action)="shippingDocumentWithGeneratedId()">Packstück-ID generieren</app-button>
|
||||
<app-button *ngIf="this.showGenerateIdButton$ | async" [outline]="true" (action)="shippingDocumentWithGeneratedId()"
|
||||
>Packstück-ID generieren</app-button
|
||||
>
|
||||
<lib-remission-shipping-document-scanner
|
||||
*ngIf="showScanningButton$ | async"
|
||||
(scan)="shippingDocumentScanned($event)"
|
||||
|
||||
@@ -38,6 +38,8 @@ export class ShippingDocumentCreationComponent implements OnInit {
|
||||
@ViewChild(UiSearchboxNextComponent, { static: false })
|
||||
searchbox: UiSearchboxNextComponent;
|
||||
|
||||
showGenerateIdButton$: Observable<boolean>;
|
||||
|
||||
constructor(
|
||||
private appService: AppService,
|
||||
private nativeService: NativeContainerService,
|
||||
@@ -51,6 +53,8 @@ export class ShippingDocumentCreationComponent implements OnInit {
|
||||
map((allowScan) => !!allowScan && this.appService.isIPadEnv() && this.nativeService.isUiWebview())
|
||||
);
|
||||
|
||||
this.showGenerateIdButton$ = this.currentRemissionProcess$.pipe(map((process) => process?.filter?.target?.name === 'Blank'));
|
||||
|
||||
this.showSearchbox$ = this.showScanningButton$.pipe(map((s) => !s));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user