this.isSearching = true
this.pluginApiService.searchAvailablePlugins(this.pluginType, this.pagination, this.sort, this.search)
- .subscribe(
- res => {
+ .subscribe({
+ next: res => {
this.isSearching = false
this.plugins = this.plugins.concat(res.data)
this.onDataSubject.next(res.data)
},
- err => {
+ error: err => {
console.error(err)
const message = $localize`The plugin index is not available. Please retry later.`
this.notifier.error(message)
}
- )
+ })
}
onNearOfBottom () {
this.installing[plugin.npmName] = true
this.pluginApiService.install(plugin.npmName)
- .subscribe(
- () => {
+ .subscribe({
+ next: () => {
this.installing[plugin.npmName] = false
this.pluginInstalled = true
plugin.installed = true
},
- err => this.notifier.error(err.message)
- )
+ error: err => this.notifier.error(err.message)
+ })
}
}