Immediately refresh the app after checking for updates

This commit is contained in:
Johannes Zellner
2026-02-20 22:27:30 +01:00
parent 555e4f0e65
commit de5692c1af
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -9,7 +9,7 @@ import AppsModel from '../../models/AppsModel.js';
import ProfileModel from '../../models/ProfileModel.js';
import TasksModel from '../../models/TasksModel.js';
const props = defineProps([ 'app' ]);
const props = defineProps([ 'app', 'refresh-app' ]);
const appsModel = AppsModel.create();
const profileModel = ProfileModel.create();
@@ -59,6 +59,8 @@ async function onCheck() {
const [error] = await appsModel.checkUpdate(props.app.id);
if (error) return console.error(error);
await props.refreshApp();
busyCheck.value = false;
}
+1 -1
View File
@@ -352,7 +352,7 @@ onBeforeUnmount(() => {
<Security v-else-if="currentView === 'security'" :app="app"/>
<Email v-else-if="currentView === 'email'" :app="app"/>
<Cron v-else-if="currentView === 'cron'" :app="app"/>
<Updates v-else-if="currentView === 'updates'" :app="app"/>
<Updates v-else-if="currentView === 'updates'" :app="app" :refresh-app="refresh"/>
<Backups v-else-if="currentView === 'backups'" :app="app"/>
<Repair v-else-if="currentView === 'repair'" :app="app"/>
<Eventlog v-else-if="currentView === 'eventlog'" :app="app"/>