From 1921979035d5aca57f907eacfe48ce1c8bac4fc7 Mon Sep 17 00:00:00 2001 From: jlandowner Date: Tue, 2 Jul 2024 00:24:57 +0900 Subject: [PATCH] UserAddonForm: Add validation that required addons are enabled --- .../src/views/organisms/UserActionDialog.tsx | 49 ++++++++++++++----- .../organisms/UserAddonsChangeDialog.tsx | 49 ++++++++++++++----- 2 files changed, 74 insertions(+), 24 deletions(-) diff --git a/web/dashboard-ui/src/views/organisms/UserActionDialog.tsx b/web/dashboard-ui/src/views/organisms/UserActionDialog.tsx index abaad209..50e441a2 100644 --- a/web/dashboard-ui/src/views/organisms/UserActionDialog.tsx +++ b/web/dashboard-ui/src/views/organisms/UserActionDialog.tsx @@ -289,6 +289,7 @@ export const UserCreateConfirmDialog: React.VFC<{ title="Create?" user={user} defaultOpenUserAddon={true} + onClose={onClose} actions={