Skip to content

Commit

Permalink
Fix [Services] Wrong case for uniqueness validation message (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
mavdryk authored Sep 18, 2024
1 parent 625e2f2 commit be5236a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/i18n/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@
"UNDO_EDIT": "Undo edit",
"UNDO_RESTART": "Undo restart",
"UNHEALTHY": "Unhealthy",
"UNIQUENESS": "Uniqueness",
"UNKNOWN": "Unknown",
"UNSTABLE": "Unstable",
"UPDATE": "Update",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/en/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@
"TRIGGER_CRON_INTERVAL_NO_SCHEDULE": "Applicable only when \"Schedule\" is empty",
"TRIGGER_SECRET_ACCESS_KEY": "\"{{triggerName}}\" trigger secret access key",
"TRIGGERS_NOT_FOUND": "There are currently no triggers, you can create a trigger by clicking the ‘Create a new trigger’ button",
"UNIQUENESS": "Uniqueness",
"UNSPECIFIED_FIELD_NAME": "Unspecified field name",
"URL_NOT_EXPOSED": "URL not exposed",
"V3IO": "V3IO",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ such restriction.
key: ValidationService.getValidationRules('function.annotation.key', [
{
name: 'uniqueness',
label: $i18next.t('functions:UNIQUENESS', { lng: lng }),
label: $i18next.t('common:UNIQUENESS', { lng: lng }),
pattern: validateUniqueness
}
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ such restriction.
var envVariableFromValidationRules = ValidationService.getValidationRules('k8s.configMapKey', [
{
name: 'uniqueness',
label: $i18next.t('functions:UNIQUENESS', {lng: lng}),
label: $i18next.t('common:UNIQUENESS', {lng: lng}),
pattern: validateUniqueness.bind(null, ['configMapRef.name', 'secretRef.name'])
}
]);
var envVariableKeyValidationRule = ValidationService.getValidationRules('k8s.envVarName', [{
name: 'uniqueness',
label: $i18next.t('functions:UNIQUENESS', {lng: lng}),
label: $i18next.t('common:UNIQUENESS', {lng: lng}),
pattern: validateUniqueness.bind(null, ['name'])
}]);
var envVariableConfigmapKeyValidationRule = ValidationService.getValidationRules('k8s.configMapKey', [
{
name: 'uniqueness',
label: $i18next.t('functions:UNIQUENESS', {lng: lng}),
label: $i18next.t('common:UNIQUENESS', {lng: lng}),
pattern: validateUniqueness.bind(null, ['valueFrom.configMapKeyRef.key'])
}
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ such restriction.
key: ValidationService.getValidationRules('function.label.key', [
{
name: 'uniqueness',
label: $i18next.t('functions:UNIQUENESS', { lng: lng }),
label: $i18next.t('common:UNIQUENESS', { lng: lng }),
pattern: validateUniqueness
}
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ such restriction.
key: ValidationService.getValidationRules('nodeSelectors.key').concat([
{
name: 'uniqueness',
label: $i18next.t('functions:UNIQUENESS', {lng: lng}),
label: $i18next.t('common:UNIQUENESS', {lng: lng}),
pattern: validateNodeSelectorUniqueness
}
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ such restriction.
ctrl.validationRules = {
itemName: [],
itemPath: ValidationService.getValidationRules('function.itemPath', [{
label: $i18next.t('functions:UNIQUENESS', { lng: lng }),
label: $i18next.t('common:UNIQUENESS', { lng: lng }),
pattern: validateUniqueness.bind(null, 'volumeMount.mountPath')
}]),
containerName: ValidationService.getValidationRules('container.name')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ such restriction.
},
itemName: ValidationService.getValidationRules('function.triggerName', [{
name: 'uniqueness',
label: $i18next.t('functions:UNIQUENESS', { lng: lng }),
label: $i18next.t('common:UNIQUENESS', { lng: lng }),
pattern: function (value) {
return lodash.filter(ctrl.triggers, ['name', value]).length <= 1;
}
Expand Down

0 comments on commit be5236a

Please sign in to comment.