Bring back the postinstall dialog

This commit is contained in:
Johannes Zellner
2025-04-23 15:32:42 +02:00
parent 5cdbfc0af7
commit 775a066a9a
5 changed files with 115 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ import DomainsModel from '../models/DomainsModel.js';
import ProfileModel from '../models/ProfileModel.js';
import UpdaterModel from '../models/UpdaterModel.js';
import ApplinkDialog from '../components/ApplinkDialog.vue';
import PostInstallDialog from '../components/PostInstallDialog.vue';
const appsModel = AppsModel.create();
const domainsModel = DomainsModel.create();
@@ -126,6 +127,7 @@ const appProgressMessage = AppsModel.appProgressMessage;
const updateInfo = ref({});
const applinkDialog = useTemplateRef('applinkDialog');
const postInstallDialog = useTemplateRef('postInstallDialog');
// hook for applinks otherwise it is a link
function openAppEdit(app, event) {
@@ -157,11 +159,10 @@ function onOpenApp(app, event) {
return stopEvent();
}
// TODO
// if (app.pendingPostInstallConfirmation && $scope.appPostInstallConfirm) {
// $scope.appPostInstallConfirm.show(app);
// return stopEvent();
// }
if (localStorage['confirmPostInstall_' + app.id]) {
postInstallDialog.value.open(app, true);
return stopEvent();
}
}
function isOperator(app) {
@@ -242,6 +243,7 @@ onUnmounted(() => {
<template>
<div class="content">
<ApplinkDialog ref="applinkDialog" @success="refreshApps()"/>
<PostInstallDialog ref="postInstallDialog"/>
<h1 class="view-header">
{{ $t('apps.title') }}