diff options
Diffstat (limited to 'client/src/app/core/confirm/confirm.service.ts')
-rw-r--r-- | client/src/app/core/confirm/confirm.service.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/client/src/app/core/confirm/confirm.service.ts b/client/src/app/core/confirm/confirm.service.ts index 08127a66f..f12ff1848 100644 --- a/client/src/app/core/confirm/confirm.service.ts +++ b/client/src/app/core/confirm/confirm.service.ts | |||
@@ -1,15 +1,15 @@ | |||
1 | import { Injectable } from '@angular/core'; | 1 | import { Injectable } from '@angular/core' |
2 | import { Subject } from 'rxjs/Subject'; | 2 | import { Subject } from 'rxjs/Subject' |
3 | import 'rxjs/add/operator/first'; | 3 | import 'rxjs/add/operator/first' |
4 | 4 | ||
5 | @Injectable() | 5 | @Injectable() |
6 | export class ConfirmService { | 6 | export class ConfirmService { |
7 | showConfirm = new Subject<{ title, message }>(); | 7 | showConfirm = new Subject<{ title, message }>() |
8 | confirmResponse = new Subject<boolean>(); | 8 | confirmResponse = new Subject<boolean>() |
9 | 9 | ||
10 | confirm(message = '', title = '') { | 10 | confirm (message = '', title = '') { |
11 | this.showConfirm.next({ title, message }); | 11 | this.showConfirm.next({ title, message }) |
12 | 12 | ||
13 | return this.confirmResponse.asObservable().first(); | 13 | return this.confirmResponse.asObservable().first() |
14 | } | 14 | } |
15 | } | 15 | } |