diff options
Diffstat (limited to 'client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts')
-rw-r--r-- | client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts index 935e11362..0058fa691 100644 --- a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts +++ b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { Notifier } from '@app/core' | 2 | import { Notifier, ServerService } from '@app/core' |
3 | import { ConfirmService } from '../../../core' | 3 | import { ConfirmService } from '../../../core' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | 4 | import { I18n } from '@ngx-translate/i18n-polyfill' |
5 | import { PluginType } from '@shared/models/plugins/plugin.type' | 5 | import { PluginType } from '@shared/models/plugins/plugin.type' |
@@ -34,10 +34,12 @@ export class PluginSearchComponent implements OnInit { | |||
34 | 34 | ||
35 | plugins: PeerTubePluginIndex[] = [] | 35 | plugins: PeerTubePluginIndex[] = [] |
36 | installing: { [name: string]: boolean } = {} | 36 | installing: { [name: string]: boolean } = {} |
37 | pluginInstalled = false | ||
37 | 38 | ||
38 | private searchSubject = new Subject<string>() | 39 | private searchSubject = new Subject<string>() |
39 | 40 | ||
40 | constructor ( | 41 | constructor ( |
42 | private server: ServerService, | ||
41 | private i18n: I18n, | 43 | private i18n: I18n, |
42 | private pluginService: PluginApiService, | 44 | private pluginService: PluginApiService, |
43 | private notifier: Notifier, | 45 | private notifier: Notifier, |
@@ -121,6 +123,7 @@ export class PluginSearchComponent implements OnInit { | |||
121 | .subscribe( | 123 | .subscribe( |
122 | () => { | 124 | () => { |
123 | this.installing[plugin.npmName] = false | 125 | this.installing[plugin.npmName] = false |
126 | this.pluginInstalled = true | ||
124 | 127 | ||
125 | this.notifier.success(this.i18n('{{pluginName}} installed.', { pluginName: plugin.name })) | 128 | this.notifier.success(this.i18n('{{pluginName}} installed.', { pluginName: plugin.name })) |
126 | 129 | ||