#1400 dont show scan article button for desktop

This commit is contained in:
Nino Righi
2021-02-08 13:52:54 +01:00
parent 14645a2ec1
commit 98e6c73b8f
2 changed files with 7 additions and 2 deletions

View File

@@ -202,7 +202,12 @@
</div>
</div>
<div class="modal-footer">
<button class="btn-outline" [disabled]="addItemsToCartDisabled || loading" (click)="scanArticle()">
<button
*ngIf="nativeContainer.isUiWebview().isNative"
class="btn-outline"
[disabled]="addItemsToCartDisabled || loading"
(click)="scanArticle()"
>
Artikel scannen
</button>

View File

@@ -233,7 +233,7 @@ export class ProductCheckoutComponent implements OnInit, OnDestroy {
private applicationService: ApplicationService,
private checkoutService: CheckoutService,
private actions: Actions,
private nativeContainer: NativeContainerService
public nativeContainer: NativeContainerService
) {}
ngOnInit() {