From f293eefe8c73345d03351501addce37d1d28ae00 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Wed, 4 Dec 2024 11:25:42 +0200 Subject: [PATCH] RED-10554 - stopped event propagation when click on download component button --- .../components/documine-export/documine-export.component.ts | 3 ++- .../buttons/file-download-btn/file-download-btn.component.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/documine-export/documine-export.component.ts b/apps/red-ui/src/app/modules/file-preview/components/documine-export/documine-export.component.ts index 071f8df4a..d56162d22 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/documine-export/documine-export.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/documine-export/documine-export.component.ts @@ -5,12 +5,13 @@ import { MatTooltip } from '@angular/material/tooltip'; import { TranslateModule } from '@ngx-translate/core'; import { MatMenu, MatMenuItem, MatMenuTrigger } from '@angular/material/menu'; import { ComponentLogService } from '@services/entity-services/component-log.service'; +import { StopPropagationDirective } from '@iqser/common-ui'; @Component({ selector: 'redaction-documine-export', templateUrl: './documine-export.component.html', standalone: true, - imports: [MatTooltip, TranslateModule, MatMenuTrigger, MatMenu, MatMenuItem], + imports: [MatTooltip, TranslateModule, MatMenuTrigger, MatMenu, MatMenuItem, StopPropagationDirective], }) export class DocumineExportComponent { readonly dossier = input(); diff --git a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html index c4f2eb198..14f77057e 100644 --- a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html +++ b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html @@ -10,6 +10,7 @@ [buttonId]="buttonId()" icon="iqser:download" dropdownButton + iqserStopPropagation > } @else {