RED-5201 -> update to not ask for confirmation when multiFileReport flag is different than already existing file
This commit is contained in:
parent
e4bc1cd323
commit
fcd898de77
@ -90,10 +90,15 @@ export class ReportsScreenComponent implements OnInit {
|
||||
});
|
||||
this._dialogService.openDialog('confirm', null, data, null, async result => {
|
||||
if (result) {
|
||||
if (this.availableTemplates$.value.some(template => template.fileName === file.name)) {
|
||||
await this._openOverwriteConfirmationDialog(file, result > 1);
|
||||
const multiFileReport = result > 1;
|
||||
if (
|
||||
this.availableTemplates$.value.some(
|
||||
template => template.fileName === file.name && template.multiFileReport === multiFileReport,
|
||||
)
|
||||
) {
|
||||
await this._openOverwriteConfirmationDialog(file, multiFileReport);
|
||||
} else {
|
||||
await this._uploadTemplateForm(file, result > 1);
|
||||
await this._uploadTemplateForm(file, multiFileReport);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user