summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts')
-rw-r--r--usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts
index cf7404d8..48b2061c 100644
--- a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts
+++ b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts
@@ -42,12 +42,13 @@ export class CreateModelComponent implements OnInit {
this.getAlltemplates();
}
- getServiceType(): void{
+ getServiceType() {
this.http.getServiceTypes(this.currentCustomer)
.subscribe((data) => {
this.serviceTypes = data.map((item) => {
return { name: item["service-type"] }
});
+ this.currentServiceType = this.serviceTypes[0]
})
}
@@ -89,8 +90,10 @@ export class CreateModelComponent implements OnInit {
this.loadingAnimateShow = false;
}
- customerChange(value): void {
- this.currentCustomer = value;
+ customerChange(id): void {
+ this.currentCustomer = this.customerList.find(item=>{
+ return item.id === id
+ });
this.getServiceType();
}