From 6e26bf0b71a8b8493fbd1575717a2c5e539f93ee Mon Sep 17 00:00:00 2001 From: minfanyang Date: Fri, 24 Aug 2018 09:28:10 +0800 Subject: Fixed ui error Change-Id: I2a26998cc093a7aaf6458f28dc752b152f0cf666 Issue-ID: HOLMES-163 Signed-off-by: minfanyang --- .../src/app/correlation-modal/modal.service.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'rulemgt-frontend/src/app/correlation-modal/modal.service.ts') diff --git a/rulemgt-frontend/src/app/correlation-modal/modal.service.ts b/rulemgt-frontend/src/app/correlation-modal/modal.service.ts index 11b4378..d71f960 100644 --- a/rulemgt-frontend/src/app/correlation-modal/modal.service.ts +++ b/rulemgt-frontend/src/app/correlation-modal/modal.service.ts @@ -13,12 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Subject } from 'rxjs'; -import { Injectable } from '@angular/core'; +import {Subject} from 'rxjs'; +import {Injectable} from '@angular/core'; + @Injectable() export class ModalService { - private modalObservable = new Subject(); - get getmodalObservable() { - return this.modalObservable; - } + private openModalAnnouncedSource = new Subject(); + openModalAnnounced$ = this.openModalAnnouncedSource.asObservable(); + + announceOpenModal(message: any) { + this.openModalAnnouncedSource.next(message); + } + } -- cgit 1.2.3-korg