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.ts12
1 files changed, 11 insertions, 1 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 1bcf266c55..6c28fae508 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
@@ -489,7 +489,17 @@ export class GeneralViewModel {
if (!this.$scope.isCreateMode() && this.$scope.isVspImport()){
this.modelService.getModels().subscribe((modelsFound: Model[]) => {
- modelsFound.sort().forEach(model => {this.$scope.models.push(model.name)});
+ modelsFound.sort().forEach(model => {
+ if (this.$scope.component.model != undefined) {
+ if (model.modelType == "NORMATIVE_EXTENSION") {
+ this.$scope.component.model = model.derivedFrom;
+ this.$scope.models.push(model.derivedFrom)
+ } else {
+ this.$scope.component.model = model.name;
+ this.$scope.models.push(model.name)
+ }
+ }
+ });
});
} else {
this.modelService.getModelsOfType("normative").subscribe((modelsFound: Model[]) => {