@samitouri / QOSami-HFS / commits / 3fd5ffd3

fix: plugin install/update can take long

Massimo Melina committed May 28, 2023 at 16:46 UTC 3fd5ffd39cae305feca59bebd4c6e33085a94b5e
2 files changed +2 -2
admin/src/InstalledPlugins.ts
+1 -1
@@ -151,7 +151,7 @@ export function UpdateButton({ id, then }: { id: string, then: (id:string)=>void
151 icon: Upgrade,
152 title: "Update",
153 async onClick() {
154 - await apiCall('update_plugin', { id })
154 + await apiCall('update_plugin', { id }, { timeout: false })
155 then?.(id)
156 toast("Plugin updated")
157 }
admin/src/OnlinePlugins.ts
+1 -1
@@ -86,7 +86,7 @@ export default function OnlinePlugins() {
86 tooltipProps: { placement:'bottom-end' }, // workaround problem with horizontal scrolling by moving the tooltip leftward
87 confirm: "WARNING - Proceed only if you trust this author and this plugin",
88 async onClick() {
89 - const res = await apiCall('download_plugin', { id, branch })
89 + const res = await apiCall('download_plugin', { id, branch }, { timeout: false })
90 await startPlugin(res.id)
91 }
92 })