From 776ea6e186f26ea2e5dd37f6a60b55022f19f672 Mon Sep 17 00:00:00 2001 From: Bartosz Leper Date: Mon, 9 Dec 2024 15:42:23 +0100 Subject: [PATCH] Review --- .../src/Roles/RoleEditor/StandardEditor.tsx | 107 +++++++----------- .../src/Roles/RoleEditor/standardmodel.ts | 4 +- 2 files changed, 40 insertions(+), 71 deletions(-) diff --git a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx index 7580c45d06413..332283e0a57d4 100644 --- a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx +++ b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx @@ -268,7 +268,7 @@ export const StandardEditor = ({ onChange={setCurrentTab} /> -
handleChange({ ...roleModel, metadata })} /> -
-
+ -
-
+ -
-
+ -
+ handleSave()} @@ -1036,25 +1036,13 @@ function Options({ const requireMFATypeId = `${id}-require-mfa-type`; const createHostUserModeId = `${id}-create-host-user-mode`; return ( - -

- Global Settings -

+ Global Settings Max Session TTL -
Disconnect When Certificate Expires
+ Disconnect When Certificate Expires onChange?.({ ...value, requireMFAType: t })} /> -

- SSH -

+ SSH Create Host User Mode @@ -1114,71 +1093,61 @@ function Options({ onChange={m => onChange?.({ ...value, createHostUserMode: m })} /> -

- Database -

+ Database -
Create Database User
+ Create Database User onChange({ ...value, createDBUser: c })} /> - {/* TODO(bl-nero): a bug in YAML unmarshalling backend breaks this option. Fix it. */} - {/* - Create Database User Mode - -