1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

Change database to Service Name in oracle

This commit is contained in:
Mel O'Hagan 2023-03-09 15:52:16 +00:00
parent fa877c8a6b
commit ad7bda17bb
2 changed files with 11 additions and 2 deletions

View file

@ -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}
/>

View file

@ -67,6 +67,7 @@ const SCHEMA: Integration = {
database: {
type: DatasourceFieldType.STRING,
required: true,
display: "Service Name",
},
user: {
type: DatasourceFieldType.STRING,