aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/confirm/confirm.service.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
commitdf98563e2104b82b119c00a3cd83cd0dc1242d25 (patch)
treea9720bf01bac9ad5646bd3d3c9bc7653617afdad /client/src/app/core/confirm/confirm.service.ts
parent46757b477c1adb5f98060d15998a3852e18902a6 (diff)
downloadPeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.gz
PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.zst
PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.zip
Use typescript standard and lint all files
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}