summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-08-22 22:06:53 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-22 22:06:53 +0000
commitd02e575d359c5a7707112e5e0afc53713d7796e7 (patch)
treef6485dd925d65e43123d52a27c6924390a91d0a4 /cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts
parent42847234a611cbfa367f7d011c9d397cb7906482 (diff)
parent5306da4cdbd068ec0785a785cc8d24bb1f03f549 (diff)
Merge "Passing Option from Search DB to metadata"
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts20
1 files changed, 14 insertions, 6 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts
index fa18cbd25..d6bcfb33b 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts
+++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.service.ts
@@ -20,21 +20,29 @@ limitations under the License.
*/
import { Injectable } from '@angular/core';
-import { Observable, of } from 'rxjs';
+import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class SelectTemplateService {
cbaOption: string;
+ private messageSource = new BehaviorSubject('default message');
+ currentMessage = this.messageSource.asObservable();
constructor() { }
setCbaOption(option: string) {
- this.cbaOption = option;
- }
-
- getCbaOption(): Observable<string> {
- return of(this.cbaOption);
+ this.messageSource.next(option);
}
+ // setCbaOption(option: string) {
+ // this.cbaOption = option;
+ // console.log("CBA option set to"+this.cbaOption+":"+option);
+ // }
+
+ // getCbaOption(): Observable<any> {
+ // console.log("CBA option is "+this.cbaOption);
+ // // return of(this.cbaOption);
+ // return this.cbaOption.asObservable();
+ // }
}