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