From f53a917032b6c71c3d2b8f536244d4ba2611c068 Mon Sep 17 00:00:00 2001 From: Alexey Sandler Date: Thu, 5 Dec 2019 17:04:45 +0200 Subject: Call to useTemplate create Action in order to update state with template which was called from back end. Issue-ID: VID-724 Signed-off-by: Alexey Sandler Change-Id: I0726d54324e523d60bcd41116ee44b01a88d9c7b --- .../shared/services/templateService/instantiationTemplates.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vid-webpack-master/src/app/shared/services/templateService') diff --git a/vid-webpack-master/src/app/shared/services/templateService/instantiationTemplates.service.ts b/vid-webpack-master/src/app/shared/services/templateService/instantiationTemplates.service.ts index 21cdc9296..018e0d367 100644 --- a/vid-webpack-master/src/app/shared/services/templateService/instantiationTemplates.service.ts +++ b/vid-webpack-master/src/app/shared/services/templateService/instantiationTemplates.service.ts @@ -6,6 +6,7 @@ import {Observable} from "rxjs"; import {ServiceInstance} from "../../models/serviceInstance"; import {Constants} from "../../utils/constants"; import {createServiceInstance} from "../../storeUtil/utils/service/service.actions"; +import {createServiceInstanceFromTemplate} from "../../storeUtil/utils/useTemplate/useTemplate.action"; @Injectable() export class InstantiationTemplatesService { @@ -19,7 +20,7 @@ export class InstantiationTemplatesService { public retrieveAndStoreInstantiationTemplateTopology(jobId: string, serviceModelId: string): Observable { return this.retrieveInstantiationTemplateTopology(jobId).do((instantiationTemplate: ServiceInstance) => { - this.store.dispatch(createServiceInstance(instantiationTemplate, serviceModelId)); + this.store.dispatch(createServiceInstanceFromTemplate(instantiationTemplate, serviceModelId)); }); }; -- cgit 1.2.3-korg