From 7fc20818b22d3f6544cef23056cff334117d8ad5 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 21 Sep 2024 10:25:23 +0200 Subject: [PATCH] Improve usability * Dialog height * Always show permission selector --- ...reate-or-update-access-dialog.component.ts | 3 +-- .../create-or-update-access-dialog.html | 22 +++++++++---------- .../user-account-access.component.ts | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts index dd755a8b9..5bb6ca3e5 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts @@ -52,13 +52,12 @@ export class CreateOrUpdateAccessDialog implements OnDestroy { if (accessType === 'PRIVATE') { granteeUserIdControl.setValidators(Validators.required); - permissionsControl.setValidators(Validators.required); } else { granteeUserIdControl.clearValidators(); + permissionsControl.setValue(this.data.access.permissions[0]); } granteeUserIdControl.updateValueAndValidity(); - permissionsControl.updateValueAndValidity(); this.changeDetectorRef.markForCheck(); }); diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html index 951079717..b903c64d5 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -27,18 +27,18 @@ - @if (accessForm.get('type').value === 'PRIVATE') { -