From f804f9f6d30deb6b6b60d0bb08a0387846f80cd7 Mon Sep 17 00:00:00 2001 From: kurilova Date: Tue, 1 Apr 2025 08:54:55 +0000 Subject: [PATCH] Disable copy of copy --- .../profile-form/profile-form.component.html | 2 +- .../risk-assessment.component.ts | 25 +++++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.html b/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.html index 20c1f6096..abd348a45 100644 --- a/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.html +++ b/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.html @@ -70,7 +70,7 @@ mat-flat-button class="copy-button" (click)="onCopyClick()" - [disabled]="selectedProfile === null"> + [disabled]="selectedProfile === null || isCopyProfile"> Copy