From f2a86e7801d0f9e5f4c6cab42c3da5813f1eace9 Mon Sep 17 00:00:00 2001 From: Aleix Date: Mon, 10 Jun 2024 11:45:25 +0200 Subject: [PATCH] feat: autoDetach for workshopProvisions (#1951) * feat: autoDetach for workshopProvisions --- .../ui/src/app/Catalog/CatalogItemForm.tsx | 19 ++++++++++++------- catalog/ui/src/app/api.ts | 9 +++++++++ catalog/ui/src/app/types.ts | 3 +++ 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/catalog/ui/src/app/Catalog/CatalogItemForm.tsx b/catalog/ui/src/app/Catalog/CatalogItemForm.tsx index 21ce7121b..a4ab00671 100644 --- a/catalog/ui/src/app/Catalog/CatalogItemForm.tsx +++ b/catalog/ui/src/app/Catalog/CatalogItemForm.tsx @@ -188,6 +188,7 @@ const CatalogItemFormData: React.FC<{ catalogItemName: string; catalogNamespaceN parameters: parameterValues, startDelay: provisionStartDelay, workshop: workshop, + useAutoDetach: formState.useAutoDetach, }); if (scheduled !== null) { try { @@ -850,6 +851,10 @@ const CatalogItemFormData: React.FC<{ catalogItemName: string; catalogNamespaceN /> + + ) : null} + <> + {isAdmin ? (
+ onChange={(isChecked) => { dispatchFormState({ type: 'useAutoDetach', useAutoDetach: !isChecked, - }) - } + }); + }} />
- - ) : null} + ) : null} + {catalogItem.spec.termsOfService ? (