mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
feat: do not initiate requests when the ChangelogModal is not open
This commit is contained in:
parent
b55a38ee97
commit
7735a04783
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