Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
ccff2219
"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "31fc9a04b6933b6298f5f8343eea7d1a64f9f9bf"
Commit
ccff2219
authored
May 26, 2024
by
Jun Siang Cheah
Browse files
refac: run admin general settings fetches in parallel
parent
12357149
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
src/lib/components/admin/Settings/General.svelte
src/lib/components/admin/Settings/General.svelte
+14
-4
No files found.
src/lib/components/admin/Settings/General.svelte
View file @
ccff2219
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment