From 434ba5e773f479c442ac2c93f291c0fa4495d479 Mon Sep 17 00:00:00 2001 From: baudelotphilippe Date: Tue, 17 Sep 2024 15:24:52 +0200 Subject: [PATCH] change order and color in dropdown menu --- .../backoffice/apikeys/TeamApiKeysForApi.tsx | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/daikoku/javascript/src/components/backoffice/apikeys/TeamApiKeysForApi.tsx b/daikoku/javascript/src/components/backoffice/apikeys/TeamApiKeysForApi.tsx index 2e687a234..b02a053b0 100644 --- a/daikoku/javascript/src/components/backoffice/apikeys/TeamApiKeysForApi.tsx +++ b/daikoku/javascript/src/components/backoffice/apikeys/TeamApiKeysForApi.tsx @@ -701,18 +701,7 @@ const ApiKeyCard = ({ > {translate("subscription.custom.name.update.label")} - {!subscription.parent && !disableRotation && openFormModal({ - title: translate("ApiKey rotation"), - actionLabel: translate('Save'), - schema: settingsSchema, - onSubmit: (data) => handleChanges(data), - value: subscription.rotation - })} - > - {translate("subscription.rotation.update.label")} - } + {subscription.children.length > 0 && openRightPanel({ @@ -739,20 +728,26 @@ const ApiKeyCard = ({ {translate("subscription.show.aggregate.label")} }
- {!subscription.parent && openFormModal({ + title: translate("ApiKey rotation"), + actionLabel: translate('Save'), + schema: settingsSchema, + onSubmit: (data) => handleChanges(data), + value: subscription.rotation + })} > - {translate("subscription.reset.secret.label")} + {translate("subscription.rotation.update.label")} } {!subscription.parent && {translate("subscription.transfer.label")} } { @@ -764,6 +759,12 @@ const ApiKeyCard = ({ {subscription.enabled ? translate("subscription.disable.button.label") : translate("subscription.enable.button.label")}
+ {!subscription.parent && + {translate("subscription.reset.secret.label")} + } {subscription.parent &&