RED-10509: disabled stopPropagation on documine .
This commit is contained in:
parent
44d361b658
commit
047a599809
@ -13,6 +13,7 @@
|
||||
[dossier]="dossier()"
|
||||
[files]="entitiesService.all$ | async"
|
||||
[iqserDisableStopPropagation]="shouldDisableStopPropagation()"
|
||||
[stopMenuImmediatePropagation]="shouldDisableStopPropagation()"
|
||||
dossierDownload
|
||||
></redaction-file-download-btn>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
@if (dropdownButton()) {
|
||||
<iqser-circle-button
|
||||
(click)="$event.stopImmediatePropagation()"
|
||||
(click)="stopImmediatePropagation($event)"
|
||||
[matMenuTriggerFor]="downloadMenu"
|
||||
[tooltipClass]="tooltipClass()"
|
||||
[tooltipPosition]="tooltipPosition()"
|
||||
|
||||
@ -28,6 +28,7 @@ export class FileDownloadBtnComponent implements OnChanges {
|
||||
readonly singleFileDownload = input(false, { transform: booleanAttribute });
|
||||
readonly dossierDownload = input(false, { transform: booleanAttribute });
|
||||
readonly dropdownButton = computed(() => this.isDocumine && (this.dossierDownload() || this.singleFileDownload()));
|
||||
readonly stopMenuImmediatePropagation = input(false);
|
||||
tooltip: string;
|
||||
canDownloadFiles: boolean;
|
||||
invalidDownload = false;
|
||||
@ -96,4 +97,10 @@ export class FileDownloadBtnComponent implements OnChanges {
|
||||
const fileToDownload = !this.dossierDownload() ? this.files()[0] : null;
|
||||
return firstValueFrom(this._componentLogService.exportXML(this.dossier().dossierTemplateId, this.dossier().id, fileToDownload));
|
||||
}
|
||||
|
||||
stopImmediatePropagation($event: MouseEvent) {
|
||||
if (!this.stopMenuImmediatePropagation()) {
|
||||
$event.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user