diff options
Diffstat (limited to 'client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts')
-rw-r--r-- | client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts index dde03f1da..a33f01691 100644 --- a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts +++ b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts | |||
@@ -4,7 +4,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core' | |||
4 | import { ActivatedRoute } from '@angular/router' | 4 | import { ActivatedRoute } from '@angular/router' |
5 | import { Notifier } from '@app/core' | 5 | import { Notifier } from '@app/core' |
6 | import { BuildFormArgument, FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 6 | import { BuildFormArgument, FormReactive, FormValidatorService } from '@app/shared/shared-forms' |
7 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
8 | import { PeerTubePlugin, RegisterServerSettingOptions } from '@shared/models' | 7 | import { PeerTubePlugin, RegisterServerSettingOptions } from '@shared/models' |
9 | import { PluginApiService } from '../shared/plugin-api.service' | 8 | import { PluginApiService } from '../shared/plugin-api.service' |
10 | 9 | ||
@@ -22,7 +21,6 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit | |||
22 | 21 | ||
23 | constructor ( | 22 | constructor ( |
24 | protected formValidatorService: FormValidatorService, | 23 | protected formValidatorService: FormValidatorService, |
25 | private i18n: I18n, | ||
26 | private pluginService: PluginApiService, | 24 | private pluginService: PluginApiService, |
27 | private notifier: Notifier, | 25 | private notifier: Notifier, |
28 | private route: ActivatedRoute | 26 | private route: ActivatedRoute |
@@ -50,7 +48,7 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit | |||
50 | this.pluginService.updatePluginSettings(this.plugin.name, this.plugin.type, settings) | 48 | this.pluginService.updatePluginSettings(this.plugin.name, this.plugin.type, settings) |
51 | .subscribe( | 49 | .subscribe( |
52 | () => { | 50 | () => { |
53 | this.notifier.success(this.i18n('Settings updated.')) | 51 | this.notifier.success($localize`Settings updated.`) |
54 | }, | 52 | }, |
55 | 53 | ||
56 | err => this.notifier.error(err.message) | 54 | err => this.notifier.error(err.message) |