summaryrefslogtreecommitdiffstats
path: root/rulemgt-frontend/src/app/correlation-modal/modal.service.ts
diff options
context:
space:
mode:
authorminfanyang <yang.minfan@zte.com.cn>2018-08-24 09:28:10 +0800
committerminfanyang <yang.minfan@zte.com.cn>2018-08-24 09:28:10 +0800
commit6e26bf0b71a8b8493fbd1575717a2c5e539f93ee (patch)
tree122b28e8c4ebf9ab70051ba34cec8e6ca022d27c /rulemgt-frontend/src/app/correlation-modal/modal.service.ts
parent448a62b47b193dd8a658b6d7c0ddf52dbfe2589b (diff)
Fixed ui error
Change-Id: I2a26998cc093a7aaf6458f28dc752b152f0cf666 Issue-ID: HOLMES-163 Signed-off-by: minfanyang <yang.minfan@zte.com.cn>
Diffstat (limited to 'rulemgt-frontend/src/app/correlation-modal/modal.service.ts')
-rw-r--r--rulemgt-frontend/src/app/correlation-modal/modal.service.ts16
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);
+ }
+
}