"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "31fc9a04b6933b6298f5f8343eea7d1a64f9f9bf"
Commit ccff2219 authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

refac: run admin general settings fetches in parallel

parent 12357149
...@@ -36,10 +36,20 @@ ...@@ -36,10 +36,20 @@
}; };
onMount(async () => { onMount(async () => {
await Promise.all([
(async () => {
signUpEnabled = await getSignUpEnabledStatus(localStorage.token); signUpEnabled = await getSignUpEnabledStatus(localStorage.token);
})(),
(async () => {
defaultUserRole = await getDefaultUserRole(localStorage.token); defaultUserRole = await getDefaultUserRole(localStorage.token);
})(),
(async () => {
JWTExpiresIn = await getJWTExpiresDuration(localStorage.token); JWTExpiresIn = await getJWTExpiresDuration(localStorage.token);
})(),
(async () => {
webhookUrl = await getWebhookUrl(localStorage.token); webhookUrl = await getWebhookUrl(localStorage.token);
})()
]);
}); });
</script> </script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment