Ensure the app install dialog is properly reset now that we keep the components alive

This commit is contained in:
Johannes Zellner
2025-09-29 22:46:05 +02:00
parent 5c6ceb2307
commit cafacf4748
2 changed files with 26 additions and 15 deletions

View File

@@ -178,14 +178,9 @@ function setItemWidth() {
else itemWidth.value = Number((width-gap*4)/4).toFixed() + 'px';
}
onActivated(async () => {
await getInstalledApps();
});
onMounted(async () => {
async function onActivation() {
await getInstalledApps();
await getAppList();
ready.value = true;
// only deals with #/appstore/ hashes
window.addEventListener('hashchange', onHashChange);
@@ -194,6 +189,13 @@ onMounted(async () => {
window.addEventListener('resize', setItemWidth);
setItemWidth();
}
onActivated(onActivation);
onMounted(async () => {
await onActivation();
ready.value = true;
});
onUnmounted(() => {