Show backup storage for each backup

This commit is contained in:
Johannes Zellner
2025-08-13 19:51:35 +02:00
parent d7b5d1f947
commit 0c1c5ae9e5
+7
View File
@@ -44,6 +44,10 @@ const columns = {
sort: false,
hideMobile: true,
},
target: {
label: 'Storage',
sort: true
},
actions: {}
};
@@ -172,6 +176,7 @@ async function refreshBackups() {
});
result.forEach(function (backup) {
backup.target = targets.value.find(t => t.id === backup.targetId);
backup.contents = []; // { id, label, fqdn }
backup.dependsOn.forEach(function (appBackupId) {
const match = appBackupId.match(/app_(.*?)_.*/); // *? means non-greedy
@@ -450,6 +455,8 @@ onMounted(async () => {
<span v-else>{{ $t('backups.listing.noApps') }}</span>
</template>
<template #target="backup">{{ backup.target.name }}</template>
<template #actions="backup">
<div style="text-align: right;">
<Button tool plain secondary @click.capture="onActionMenu(backup, $event)" icon="fa-solid fa-ellipsis" />