summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/view-models')
-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();
}
};