0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore(console): keep app description input field (#5283)

keep description input field for the third-party app
This commit is contained in:
simeng-li 2024-01-23 22:10:40 +08:00 committed by GitHub
parent 12fc67a039
commit 8eba064199
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,6 @@ import { Trans, useTranslation } from 'react-i18next';
import FormCard from '@/components/FormCard';
import MultiTextInputField from '@/components/MultiTextInputField';
import { isDevFeaturesEnabled } from '@/consts/env';
import FormField from '@/ds-components/FormField';
import type { MultiTextInputRule } from '@/ds-components/MultiTextInput/types';
import {
@ -63,16 +62,12 @@ function Settings({ data }: Props) {
placeholder={t('application_details.application_name_placeholder')}
/>
</FormField>
{/* Hide description field in third-party application's form. @simeng-li FIXME: remove isDevFeatureEnabled flag */}
{(!isDevFeaturesEnabled || !isThirdParty) && (
<FormField title="application_details.description">
<TextInput
{...register('description')}
placeholder={t('application_details.description_placeholder')}
/>
</FormField>
)}
<FormField title="application_details.description">
<TextInput
{...register('description')}
placeholder={t('application_details.description_placeholder')}
/>
</FormField>
{applicationType !== ApplicationType.MachineToMachine && (
<Controller
name="oidcClientMetadata.redirectUris"