diff options
Diffstat (limited to 'rulemgt-frontend/src/app/correlation-modal/modal.service.ts')
-rw-r--r-- | rulemgt-frontend/src/app/correlation-modal/modal.service.ts | 16 |
1 files changed, 10 insertions, 6 deletions
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<any>(); + openModalAnnounced$ = this.openModalAnnouncedSource.asObservable(); + + announceOpenModal(message: any) { + this.openModalAnnouncedSource.next(message); + } + } |