diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-15 09:21:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-15 09:21:06 +0200 |
commit | f757be65b8dc2d3b286b5d8b22c64637d7bc2fb8 (patch) | |
tree | fb0d8e7913a685ede5673fdef8cfc8c9affbd3ef /client/src/app | |
parent | 74c2dece42d387506421623fbfadc83da811ebcd (diff) | |
download | PeerTube-f757be65b8dc2d3b286b5d8b22c64637d7bc2fb8.tar.gz PeerTube-f757be65b8dc2d3b286b5d8b22c64637d7bc2fb8.tar.zst PeerTube-f757be65b8dc2d3b286b5d8b22c64637d7bc2fb8.zip |
Better plugin notifier typings
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index b9d55a7e4..aa6823060 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -273,7 +273,11 @@ export class PluginService implements ClientHook { | |||
273 | return this.authService.isLoggedIn() | 273 | return this.authService.isLoggedIn() |
274 | }, | 274 | }, |
275 | 275 | ||
276 | notifier: this.notifier, | 276 | notifier: { |
277 | info: (text: string, title?: string, timeout?: number) => this.notifier.info(text, title, timeout), | ||
278 | error: (text: string, title?: string, timeout?: number) => this.notifier.error(text, title, timeout), | ||
279 | success: (text: string, title?: string, timeout?: number) => this.notifier.success(text, title, timeout) | ||
280 | }, | ||
277 | 281 | ||
278 | translate: (value: string) => { | 282 | translate: (value: string) => { |
279 | return this.translationsObservable | 283 | return this.translationsObservable |