diff options
Diffstat (limited to 'client/src/app/+admin/plugins/plugin-list-installed')
-rw-r--r-- | client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts b/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts index 968abcbe5..85f9879bf 100644 --- a/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts +++ b/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts | |||
@@ -61,16 +61,16 @@ export class PluginListInstalledComponent implements OnInit { | |||
61 | 61 | ||
62 | loadMorePlugins () { | 62 | loadMorePlugins () { |
63 | this.pluginApiService.getPlugins(this.pluginType, this.pagination, this.sort) | 63 | this.pluginApiService.getPlugins(this.pluginType, this.pagination, this.sort) |
64 | .subscribe( | 64 | .subscribe({ |
65 | res => { | 65 | next: res => { |
66 | this.plugins = this.plugins.concat(res.data) | 66 | this.plugins = this.plugins.concat(res.data) |
67 | this.pagination.totalItems = res.total | 67 | this.pagination.totalItems = res.total |
68 | 68 | ||
69 | this.onDataSubject.next(res.data) | 69 | this.onDataSubject.next(res.data) |
70 | }, | 70 | }, |
71 | 71 | ||
72 | err => this.notifier.error(err.message) | 72 | error: err => this.notifier.error(err.message) |
73 | ) | 73 | }) |
74 | } | 74 | } |
75 | 75 | ||
76 | onNearOfBottom () { | 76 | onNearOfBottom () { |
@@ -113,16 +113,16 @@ export class PluginListInstalledComponent implements OnInit { | |||
113 | if (res === false) return | 113 | if (res === false) return |
114 | 114 | ||
115 | this.pluginApiService.uninstall(plugin.name, plugin.type) | 115 | this.pluginApiService.uninstall(plugin.name, plugin.type) |
116 | .subscribe( | 116 | .subscribe({ |
117 | () => { | 117 | next: () => { |
118 | this.notifier.success($localize`${plugin.name} uninstalled.`) | 118 | this.notifier.success($localize`${plugin.name} uninstalled.`) |
119 | 119 | ||
120 | this.plugins = this.plugins.filter(p => p.name !== plugin.name) | 120 | this.plugins = this.plugins.filter(p => p.name !== plugin.name) |
121 | this.pagination.totalItems-- | 121 | this.pagination.totalItems-- |
122 | }, | 122 | }, |
123 | 123 | ||
124 | err => this.notifier.error(err.message) | 124 | error: err => this.notifier.error(err.message) |
125 | ) | 125 | }) |
126 | } | 126 | } |
127 | 127 | ||
128 | async update (plugin: PeerTubePlugin) { | 128 | async update (plugin: PeerTubePlugin) { |
@@ -143,8 +143,8 @@ export class PluginListInstalledComponent implements OnInit { | |||
143 | 143 | ||
144 | this.pluginApiService.update(plugin.name, plugin.type) | 144 | this.pluginApiService.update(plugin.name, plugin.type) |
145 | .pipe() | 145 | .pipe() |
146 | .subscribe( | 146 | .subscribe({ |
147 | res => { | 147 | next: res => { |
148 | this.updating[updatingKey] = false | 148 | this.updating[updatingKey] = false |
149 | 149 | ||
150 | this.notifier.success($localize`${plugin.name} updated.`) | 150 | this.notifier.success($localize`${plugin.name} updated.`) |
@@ -152,8 +152,8 @@ export class PluginListInstalledComponent implements OnInit { | |||
152 | Object.assign(plugin, res) | 152 | Object.assign(plugin, res) |
153 | }, | 153 | }, |
154 | 154 | ||
155 | err => this.notifier.error(err.message) | 155 | error: err => this.notifier.error(err.message) |
156 | ) | 156 | }) |
157 | } | 157 | } |
158 | 158 | ||
159 | getShowRouterLink (plugin: PeerTubePlugin) { | 159 | getShowRouterLink (plugin: PeerTubePlugin) { |