From f757be65b8dc2d3b286b5d8b22c64637d7bc2fb8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Apr 2020 09:21:06 +0200 Subject: Better plugin notifier typings --- client/src/app/core/plugins/plugin.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/app/core') 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 { return this.authService.isLoggedIn() }, - notifier: this.notifier, + notifier: { + info: (text: string, title?: string, timeout?: number) => this.notifier.info(text, title, timeout), + error: (text: string, title?: string, timeout?: number) => this.notifier.error(text, title, timeout), + success: (text: string, title?: string, timeout?: number) => this.notifier.success(text, title, timeout) + }, translate: (value: string) => { return this.translationsObservable -- cgit v1.2.3