apps: operators can now view backup logs and manage the backup task

we spun off the app backup as a separate task and this is not tracked
by app.taskId .

fixes #856
This commit is contained in:
Girish Ramakrishnan
2026-03-14 22:39:21 +05:30
parent 29f85a8fd2
commit 7afec06d4c
10 changed files with 170 additions and 18 deletions

View File

@@ -62,7 +62,11 @@ onMounted(async () => {
const crashId = urlParams.get('crashId');
const idParam = urlParams.get('id');
if (appId) {
if (appId && taskId) {
type.value = 'task';
id.value = taskId;
name.value = 'Task ' + taskId;
} else if (appId) {
type.value = 'app';
id.value = appId;
name.value = 'App ' + appId;
@@ -89,7 +93,7 @@ onMounted(async () => {
return;
}
logsModel = LogsModel.create(type.value, id.value);
logsModel = LogsModel.create(type.value, id.value, { appId });
if (type.value === 'app') {
const [error, app] = await appsModel.get(id.value);