mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-19 14:47:36 -04:00
fix small bug where removing mod source didnt fully refresh list (#548)
This commit is contained in:
parent
42718a5492
commit
c735e340c5
|
@ -28,10 +28,14 @@
|
|||
|
||||
let pageLoaded = false;
|
||||
|
||||
onMount(async () => {
|
||||
async function refreshModSourceData() {
|
||||
currentSources = await getModSources();
|
||||
await refreshModSources();
|
||||
currentSourceData = await getModSourcesData();
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
await refreshModSourceData();
|
||||
pageLoaded = true;
|
||||
});
|
||||
</script>
|
||||
|
@ -61,7 +65,7 @@
|
|||
disabled={newSourceURL === ""}
|
||||
on:click={async () => {
|
||||
await addModSource(newSourceURL, currentSourceData);
|
||||
currentSources = await getModSources();
|
||||
await refreshModSourceData();
|
||||
}}
|
||||
><IconPlus
|
||||
class="text-xl"
|
||||
|
@ -86,7 +90,7 @@
|
|||
class="p-0 m-3 hover:text-red-500"
|
||||
on:click={async () => {
|
||||
await removeModSource(i);
|
||||
currentSources = await getModSources();
|
||||
await refreshModSourceData();
|
||||
}}
|
||||
><IconDeleteForever
|
||||
class="text-xl"
|
||||
|
|
Loading…
Reference in a new issue