mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-2053] Create folder - focus on first form input (#860)
This commit is contained in:
committed by
Denys Vuika
parent
c7d11b93fc
commit
e1133eb5b2
@@ -236,6 +236,13 @@ export class ContentManagementService {
|
||||
this.store.dispatch(new SnackbarErrorAction(message));
|
||||
});
|
||||
|
||||
// todo: add focus in ADF component
|
||||
dialogInstance
|
||||
.afterOpened()
|
||||
.subscribe(() =>
|
||||
(<HTMLElement>document.querySelector('#adf-folder-name-input')).focus()
|
||||
);
|
||||
|
||||
dialogInstance.afterClosed().subscribe(node => {
|
||||
if (node) {
|
||||
this.folderCreated.next(node);
|
||||
@@ -259,6 +266,13 @@ export class ContentManagementService {
|
||||
this.store.dispatch(new SnackbarErrorAction(message));
|
||||
});
|
||||
|
||||
// todo: add focus in ADF component
|
||||
dialog
|
||||
.afterOpened()
|
||||
.subscribe(() =>
|
||||
(<HTMLElement>document.querySelector('#adf-folder-name-input')).focus()
|
||||
);
|
||||
|
||||
dialog.afterClosed().subscribe((node: MinimalNodeEntryEntity) => {
|
||||
if (node) {
|
||||
this.folderEdited.next(node);
|
||||
|
||||
Reference in New Issue
Block a user