Change database to Service Name in oracle
This commit is contained in:
parent
fa877c8a6b
commit
ad7bda17bb
|
@ -74,6 +74,14 @@
|
|||
}
|
||||
return capitalise(name)
|
||||
}
|
||||
|
||||
function getDisplayError(error, configKey) {
|
||||
return error?.replace(
|
||||
new RegExp(`${configKey}`, "i"),
|
||||
getDisplayName(configKey)
|
||||
)
|
||||
}
|
||||
|
||||
function getFieldGroupKeys(fieldGroup) {
|
||||
return Object.entries(schema[fieldGroup].fields || {})
|
||||
.filter(el => filter(el))
|
||||
|
@ -147,7 +155,7 @@
|
|||
type={schema[configKey].type}
|
||||
on:change
|
||||
bind:value={config[configKey]}
|
||||
error={$validation.errors[configKey]}
|
||||
error={getDisplayError($validation.errors[configKey], configKey)}
|
||||
/>
|
||||
</div>
|
||||
{:else if schema[configKey].type === "fieldGroup"}
|
||||
|
@ -180,7 +188,7 @@
|
|||
type={configKey === "port" ? "string" : schema[configKey].type}
|
||||
on:change
|
||||
bind:value={config[configKey]}
|
||||
error={$validation.errors[configKey]}
|
||||
error={getDisplayError($validation.errors[configKey], configKey)}
|
||||
environmentVariablesEnabled={$licensing.environmentVariablesEnabled}
|
||||
{handleUpgradePanel}
|
||||
/>
|
||||
|
|
|
@ -67,6 +67,7 @@ const SCHEMA: Integration = {
|
|||
database: {
|
||||
type: DatasourceFieldType.STRING,
|
||||
required: true,
|
||||
display: "Service Name",
|
||||
},
|
||||
user: {
|
||||
type: DatasourceFieldType.STRING,
|
||||
|
|
Loading…
Reference in New Issue