summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app
diff options
context:
space:
mode:
authorKrupaNagabhushan <krupa.nagabhushan@est.tech>2022-08-19 11:37:17 +0100
committerMichael Morris <michael.morris@est.tech>2022-08-30 10:28:01 +0000
commit7a6c382547b7d6a681499a66db50d2f3f0c1d7dc (patch)
tree407efa56eb8400df196d5feb8ee8302399119a9c /catalog-ui/src/app
parentae24e28cda8247fdce38330356b63db1377be58f (diff)
Service Import - general page validation
Issue-ID: SDC-4137 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: Ib0d81722f699f7521465dc313d538e4b08912d4d
Diffstat (limited to 'catalog-ui/src/app')
-rw-r--r--catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts b/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts
index ad96e74a2b..9d67b8eb69 100644
--- a/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts
+++ b/catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts
@@ -638,8 +638,9 @@ export class GeneralViewModel {
const onSuccess = (validation:IValidate) => {
this.$scope.editForm['componentName'].$setValidity('nameExist', validation.isValid);
if (validation.isValid) {
- // update breadcrumb after changing name
- this.updateComponentNameInBreadcrumbs();
+ this.updateComponentNameInBreadcrumbs(); // update breadcrumb after changing name
+ } else {
+ this.$scope.editForm['componentName'].$setDirty();
}
};