diff --git a/daikoku/javascript/src/components/backoffice/apis/TeamApiInfo.tsx b/daikoku/javascript/src/components/backoffice/apis/TeamApiInfo.tsx index a5e7badf..d5549ef9 100644 --- a/daikoku/javascript/src/components/backoffice/apis/TeamApiInfo.tsx +++ b/daikoku/javascript/src/components/backoffice/apis/TeamApiInfo.tsx @@ -98,7 +98,8 @@ export const teamApiInfoForm = (translate: any, team: ITeamSimple, tenant: ITena customHeaderCmsPage: { type: type.string, format: format.select, - label: translate('CMS Page as Header'), + label: translate('api.form.cms.header.label'), + help: translate('api.form.cms.header.help'), props: { isClearable: true }, optionsFrom: getCmsPages, transformer: page => ({ @@ -230,11 +231,18 @@ export const teamApiInfoForm = (translate: any, team: ITeamSimple, tenant: ITena const flow = (expert: any) => [ { label: translate('Basic.informations'), - flow: ['state', 'name', 'smallDescription', 'image', 'header', 'customHeaderCmsPage'].filter((entry) => + flow: ['state', 'name', 'smallDescription', 'image'].filter((entry) => simpleOrExpertMode(entry, expert) ), collapsed: false, }, + { + label: translate('api.form.header.flow.label'), + flow: ['header', 'customHeaderCmsPage'].filter((entry) => + simpleOrExpertMode(entry, expert) + ), + collapsed: true, + }, { label: translate('Versions and tags'), flow: ['isDefault', 'currentVersion', 'supportedVersions', 'tags', 'categories'].filter( diff --git a/daikoku/javascript/src/components/frontend/api/ApiDescription.tsx b/daikoku/javascript/src/components/frontend/api/ApiDescription.tsx index cec1d3e0..e232d620 100644 --- a/daikoku/javascript/src/components/frontend/api/ApiDescription.tsx +++ b/daikoku/javascript/src/components/frontend/api/ApiDescription.tsx @@ -53,7 +53,7 @@ export const ApiDescription = ({