Ensure the app install dialog is properly reset now that we keep the components alive
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user