From 5375f42210497c0773bada6b6bfbe59ab0a7974c Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Thu, 16 Feb 2023 15:11:02 -0500 Subject: [PATCH] [EC-1029][EC-1030][EC-1031] focus on dialogs in admin console (#4634) * [EC-1031] focus on dialogs in vault * [EC-1031] remove extra permissionMode * [EC-1030] add focus to group dialog * [EC-1031] undo extra changes * Update apps/web/src/vault/app/vault/vault-items.component.html Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> --------- Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> --- apps/web/src/app/core/web-platform-utils.service.ts | 1 + .../organizations/manage/group-add-edit.component.html | 2 +- .../collection-dialog/collection-dialog.component.html | 2 +- .../vault/individual-vault/vault-items.component.html | 10 ++++------ .../dialog/simple-dialog/simple-dialog.component.html | 4 +++- libs/components/src/menu/menu-trigger-for.directive.ts | 2 +- libs/components/src/menu/menu.component.html | 1 - 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/web/src/app/core/web-platform-utils.service.ts b/apps/web/src/app/core/web-platform-utils.service.ts index e2271f713b3..7f693200bc7 100644 --- a/apps/web/src/app/core/web-platform-utils.service.ts +++ b/apps/web/src/app/core/web-platform-utils.service.ts @@ -184,6 +184,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService { showConfirmButton: true, confirmButtonText: confirmText == null ? this.i18nService.t("ok") : confirmText, target: target != null ? target : "body", + onOpen: () => Swal.getConfirmButton().focus(), }); if (bootstrapModal != null) { diff --git a/apps/web/src/app/organizations/manage/group-add-edit.component.html b/apps/web/src/app/organizations/manage/group-add-edit.component.html index c1d45cbadf6..197dde56607 100644 --- a/apps/web/src/app/organizations/manage/group-add-edit.component.html +++ b/apps/web/src/app/organizations/manage/group-add-edit.component.html @@ -20,7 +20,7 @@ {{ "name" | i18n }} - + {{ "characterMaximum" | i18n: 100 }} diff --git a/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.html b/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.html index 03c061b6801..8fd96a33a48 100644 --- a/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.html +++ b/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.html @@ -19,7 +19,7 @@ {{ "name" | i18n }} - + diff --git a/apps/web/src/vault/individual-vault/vault-items.component.html b/apps/web/src/vault/individual-vault/vault-items.component.html index 1292c957002..39e8af4f1b8 100644 --- a/apps/web/src/vault/individual-vault/vault-items.component.html +++ b/apps/web/src/vault/individual-vault/vault-items.component.html @@ -43,8 +43,7 @@ - -