mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
committed by
Eugenio Romano
parent
b1bccdb0e3
commit
1d7ef62095
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user