aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/confirm/confirm.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core/confirm/confirm.service.ts')
-rw-r--r--client/src/app/core/confirm/confirm.service.ts16
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 @@
1import { Injectable } from '@angular/core'; 1import { Injectable } from '@angular/core'
2import { Subject } from 'rxjs/Subject'; 2import { Subject } from 'rxjs/Subject'
3import 'rxjs/add/operator/first'; 3import 'rxjs/add/operator/first'
4 4
5@Injectable() 5@Injectable()
6export class ConfirmService { 6export 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}