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:
parent
12fc67a039
commit
8eba064199
1 changed files with 6 additions and 11 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue