mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Merge pull request #17542 from ShirasawaSama/patch-23
feat: do not initiate requests when the ChangelogModal is not open to speed up page loading
This commit is contained in:
commit
0159a33306
1 changed files with 5 additions and 4 deletions
|
|
@ -19,10 +19,11 @@
|
|||
|
||||
let changelog = null;
|
||||
|
||||
onMount(async () => {
|
||||
const res = await getChangelog();
|
||||
changelog = res;
|
||||
});
|
||||
const init = async () => {
|
||||
changelog = await getChangelog();
|
||||
};
|
||||
|
||||
$: show && init();
|
||||
</script>
|
||||
|
||||
<Modal bind:show size="xl">
|
||||
|
|
|
|||
Loading…
Reference in a new issue