Improve reactivity if app install dialog should be opened

This commit is contained in:
Johannes Zellner
2025-12-10 14:20:59 +01:00
parent 241be5eaee
commit 52e1276c8d
2 changed files with 37 additions and 11 deletions
+4 -4
View File
@@ -155,10 +155,10 @@ async function onHashChange() {
const params = new URLSearchParams(window.location.hash.slice(window.location.hash.indexOf('?')));
const version = params.get('version') || 'latest';
const app = await getApp(appId, version);
if (app) {
appInstallDialog.value.open(app, installedApps.value.length >= features.value.appMaxCount, domains.value);
} else {
try {
await appInstallDialog.value.open(appId, version, installedApps.value.length >= features.value.appMaxCount, domains.value);
// eslint-disable-next-line no-unused-vars
} catch (e) {
inputDialog.value.info({
title: t('appstore.appNotFoundDialog.title'),
message: t('appstore.appNotFoundDialog.description', { appId, version }),