From b93e39068c0e5497ccd610115a5e1f9089984c2f Mon Sep 17 00:00:00 2001 From: Nino Righi Date: Mon, 24 Nov 2025 16:01:56 +0000 Subject: [PATCH] Merged PR 2050: feature(checkout-reward): Disable Print Order Confirmation for HSC Users feature(checkout-reward): Disable Print Order Confirmation for HSC Users Ref: #5471 --- .../order-confirmation-header.component.html | 5 ++++- .../order-confirmation-header.component.ts | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.html b/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.html index fd064412b..137594bbd 100644 --- a/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.html +++ b/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.html @@ -2,6 +2,9 @@ Prämienausgabe abgeschlossen -Prämienbeleg drucken diff --git a/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.ts b/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.ts index 6e9621b4a..51a17c792 100644 --- a/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.ts +++ b/libs/checkout/feature/reward-order-confirmation/src/lib/order-confirmation-header/order-confirmation-header.component.ts @@ -2,15 +2,17 @@ import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; import { CheckoutPrintFacade } from '@isa/checkout/data-access'; import { PrintButtonComponent, Printer } from '@isa/common/print'; import { OrderConfiramtionStore } from '../reward-order-confirmation.store'; +import { IfRoleDirective, Role } from '@isa/core/auth'; @Component({ selector: 'checkout-order-confirmation-header', templateUrl: './order-confirmation-header.component.html', styleUrls: ['./order-confirmation-header.component.css'], changeDetection: ChangeDetectionStrategy.OnPush, - imports: [PrintButtonComponent], + imports: [PrintButtonComponent, IfRoleDirective], }) export class OrderConfirmationHeaderComponent { + protected readonly Role = Role; #checkoutPrintFacade = inject(CheckoutPrintFacade); #store = inject(OrderConfiramtionStore);