diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
commit | df98563e2104b82b119c00a3cd83cd0dc1242d25 (patch) | |
tree | a9720bf01bac9ad5646bd3d3c9bc7653617afdad /client/src/app/core/confirm/confirm.service.ts | |
parent | 46757b477c1adb5f98060d15998a3852e18902a6 (diff) | |
download | PeerTube-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.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 | } |