summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/blueprint/select-template
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-08-09 19:54:23 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-09 19:54:23 +0000
commit44394f3fb4953b11574d2686501d50809efc7195 (patch)
treebcc3d476c8046e1cee322ac50f0dbf3f8d41570b /cds-ui/client/src/app/feature-modules/blueprint/select-template
parent3a1077c1405b10e9d5e49e39e6e2493c8529c59a (diff)
parent5b5f8262baaf9aa07d7218e5a92b8a6cbf444be4 (diff)
Merge "Search from db components change"
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/blueprint/select-template')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts17
1 files changed, 11 insertions, 6 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts
index 1c3630649..df3aafb73 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts
+++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts
@@ -23,7 +23,9 @@ import { Component, OnInit, ViewChild, EventEmitter, Output } from '@angular/cor
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { SearchTemplateService } from '../search-template.service';
import { MatAutocompleteTrigger } from '@angular/material';
+import { NotificationHandlerService } from 'src/app/common/core/services/notification-handler.service';
import { SearchPipe } from 'src/app/common/shared/pipes/search.pipe';
+
@Component({
selector: 'app-search-from-database',
templateUrl: './search-from-database.component.html',
@@ -38,7 +40,7 @@ export class SearchFromDatabaseComponent implements OnInit {
searchText: string = '';
constructor(private _formBuilder: FormBuilder,
- private searchService: SearchTemplateService) { }
+ private searchService: SearchTemplateService, private alertService: NotificationHandlerService, ) { }
ngOnInit() {
this.myControl = this._formBuilder.group({
@@ -50,18 +52,21 @@ export class SearchFromDatabaseComponent implements OnInit {
}
fetchResourceByName() {
+ this.options = [];
this.searchService.searchByTags(this.searchText)
.subscribe(data => {
- // console.log(data);
data.forEach(element => {
this.options.push(element)
});
- // this.resourceSelect.openPanel();
}, error => {
- window.alert('error' + error);
+ this.alertService.error('Blueprint not matching the search tag' + error);
})
- console.log(this.options)
- // this.options=['test','vns','capability','hello','hi','hoi','dfagfagshdgfashdf','adsfhksd'];
}
+ editCBA(artifactname: string,option : string) {
+
+ }
+
+
+
}