fix: admin/config: https status could be stale after certificate generation

Massimo Melina committed Apr 5, 2022 at 20:41 UTC a140410620637104618220e480818dbb00ea7cec
1 file changed +1 -1
admin/src/ConfigPage.ts
+1 -1
@@ -194,7 +194,7 @@ export async function makeCertAndSave() {
194 await apiCall('set_config', { values: saved })
195 if (loaded) // when undefined we are outside of this page
196 Object.assign(loaded, saved)
197 - exposedReloadStatus?.()
197 + setTimeout(exposedReloadStatus!, 1000) // give some time for backend to apply
198 Object.assign(state.config, saved)
199 await alertDialog("Certificate saved", 'success')
200 }