Improve reactivity if app install dialog should be opened
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user