Update data source constant file
This commit is contained in:
parent
1f4f77a828
commit
650e2bc652
1 changed files with 7 additions and 1 deletions
|
|
@ -47,6 +47,7 @@ export const DataSourceInfo = {
|
||||||
name: 'Moodle',
|
name: 'Moodle',
|
||||||
description: t(`setting.${DataSourceKey.MOODLE}Description`),
|
description: t(`setting.${DataSourceKey.MOODLE}Description`),
|
||||||
icon: <SvgIcon name={'data-source/moodle'} width={38} />,
|
icon: <SvgIcon name={'data-source/moodle'} width={38} />,
|
||||||
|
},
|
||||||
[DataSourceKey.JIRA]: {
|
[DataSourceKey.JIRA]: {
|
||||||
name: 'Jira',
|
name: 'Jira',
|
||||||
description: t(`setting.${DataSourceKey.JIRA}Description`),
|
description: t(`setting.${DataSourceKey.JIRA}Description`),
|
||||||
|
|
@ -121,7 +122,7 @@ export const DataSourceFormFields = {
|
||||||
required: false,
|
required: false,
|
||||||
placeholder: 'https://fsn1.your-objectstorage.com',
|
placeholder: 'https://fsn1.your-objectstorage.com',
|
||||||
tooltip: t('setting.S3CompatibleEndpointUrlTip'),
|
tooltip: t('setting.S3CompatibleEndpointUrlTip'),
|
||||||
shouldRender: (formValues) => {
|
shouldRender: (formValues: any) => {
|
||||||
return formValues?.config?.bucket_type === 's3_compatible';
|
return formValues?.config?.bucket_type === 's3_compatible';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -305,6 +306,8 @@ export const DataSourceFormFields = {
|
||||||
name: 'config.credentials.moodle_token',
|
name: 'config.credentials.moodle_token',
|
||||||
type: FormFieldType.Password,
|
type: FormFieldType.Password,
|
||||||
required: true,
|
required: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
[DataSourceKey.JIRA]: [
|
[DataSourceKey.JIRA]: [
|
||||||
{
|
{
|
||||||
label: 'Jira Base URL',
|
label: 'Jira Base URL',
|
||||||
|
|
@ -576,6 +579,9 @@ export const DataSourceFormDefaultValues = {
|
||||||
moodle_url: '',
|
moodle_url: '',
|
||||||
credentials: {
|
credentials: {
|
||||||
moodle_token: '',
|
moodle_token: '',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
[DataSourceKey.JIRA]: {
|
[DataSourceKey.JIRA]: {
|
||||||
name: '',
|
name: '',
|
||||||
source: DataSourceKey.JIRA,
|
source: DataSourceKey.JIRA,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue