diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-04-19 17:34:54 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2019-04-19 17:35:09 +0530 |
commit | 82f1f0a6156b7ca4847041f4f9140e05a37c1891 (patch) | |
tree | fc582b24cb8fc395f69a335eb2be97de3e551352 /cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/existing-model.component.ts | |
parent | f812f74460b20a2ba2d4c58e45fd9463a7209769 (diff) |
Resourcedictionary-fetching resources from backend
Intgrated UI with loopback to fetch resources from backend on search
Issue-ID: CCSDK-1217
Change-Id: I4a1c30748d24079bc976f6785df39bbe60777489
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/existing-model.component.ts')
-rw-r--r-- | cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/existing-model.component.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/existing-model.component.ts b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/existing-model.component.ts index 9fdc38886..9d262c600 100644 --- a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/existing-model.component.ts +++ b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/existing-model.component.ts @@ -31,7 +31,7 @@ import { LoadResourcesSuccess } from 'src/app/common/core/store/actions/resource }) export class ExistingModelComponent implements OnInit { - resourceName:string; + resource:any; constructor(private store: Store<IAppState>) { } @@ -40,7 +40,8 @@ export class ExistingModelComponent implements OnInit { selectedResource(value){ console.log(value); - this.resourceName=value; + this.resource=value; + this.updateResourcesState(); } getDataUsingResouceName(){ @@ -50,7 +51,7 @@ export class ExistingModelComponent implements OnInit { updateResourcesState() { var me = this; var data:IResources; - me.store.dispatch(new LoadResourcesSuccess(data)); + me.store.dispatch(new LoadResourcesSuccess(this.resource)); } |