diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index da5114048..b9d55a7e4 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -12,7 +12,7 @@ import { ClientHook, ClientHookName, clientHookObject } from '@shared/models/plu | |||
12 | import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type' | 12 | import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type' |
13 | import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model' | 13 | import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model' |
14 | import { HttpClient } from '@angular/common/http' | 14 | import { HttpClient } from '@angular/common/http' |
15 | import { AuthService } from '@app/core/auth' | 15 | import { AuthService, Notifier } from '@app/core' |
16 | import { RestExtractor } from '@app/shared/rest' | 16 | import { RestExtractor } from '@app/shared/rest' |
17 | import { PluginType } from '@shared/models/plugins/plugin.type' | 17 | import { PluginType } from '@shared/models/plugins/plugin.type' |
18 | import { PublicServerSetting } from '@shared/models/plugins/public-server.setting' | 18 | import { PublicServerSetting } from '@shared/models/plugins/public-server.setting' |
@@ -60,6 +60,7 @@ export class PluginService implements ClientHook { | |||
60 | constructor ( | 60 | constructor ( |
61 | private router: Router, | 61 | private router: Router, |
62 | private authService: AuthService, | 62 | private authService: AuthService, |
63 | private notifier: Notifier, | ||
63 | private server: ServerService, | 64 | private server: ServerService, |
64 | private zone: NgZone, | 65 | private zone: NgZone, |
65 | private authHttp: HttpClient, | 66 | private authHttp: HttpClient, |
@@ -272,6 +273,8 @@ export class PluginService implements ClientHook { | |||
272 | return this.authService.isLoggedIn() | 273 | return this.authService.isLoggedIn() |
273 | }, | 274 | }, |
274 | 275 | ||
276 | notifier: this.notifier, | ||
277 | |||
275 | translate: (value: string) => { | 278 | translate: (value: string) => { |
276 | return this.translationsObservable | 279 | return this.translationsObservable |
277 | .pipe(map(allTranslations => allTranslations[npmName])) | 280 | .pipe(map(allTranslations => allTranslations[npmName])) |