[ADF-4953] Uploader - confirmation dialog actions should return focus to the upload dialog (#5148)

* trap confirmation dialog

* focus dialog when not in confirmation state

* test
This commit is contained in:
Cilibiu Bogdan
2019-10-14 13:18:17 +03:00
committed by Eugenio Romano
parent b1bccdb0e3
commit 1d7ef62095
4 changed files with 29 additions and 3 deletions

View File

@@ -153,6 +153,10 @@ export class FileUploadingDialogComponent implements OnInit, OnDestroy {
toggleConfirmation() {
this.isConfirmation = !this.isConfirmation;
if (!this.isConfirmation) {
this.dialogActive.next();
}
if (this.isDialogMinimized) {
this.isDialogMinimized = false;
}
@@ -163,7 +167,7 @@ export class FileUploadingDialogComponent implements OnInit, OnDestroy {
*/
cancelAllUploads() {
this.toggleConfirmation();
this.dialogActive.next();
this.uploadList.cancelAllFiles();
}