fix(xo6): repair negative other value in backup repository dashboard (#10044)

This commit is contained in:
Alina D
2026-07-10 09:38:42 +02:00
committed by GitHub
parent 1d82c373da
commit f3f8519b7a
2 changed files with 5 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ export const useXoSiteDashboard = defineRemoteResource({
return {
available: formatSizeRaw(dashboard.value.backupRepositories.other.size.available, 1),
backups: formatSizeRaw(dashboard.value.backupRepositories.other.size.backups, 1),
other: formatSizeRaw(dashboard.value.backupRepositories.other.size.other ?? 0, 1),
other: formatSizeRaw(Math.max(0, dashboard.value.backupRepositories.other.size.other ?? 0), 1),
total: formatSizeRaw(dashboard.value.backupRepositories.other.size.total, 1),
used: formatSizeRaw(dashboard.value.backupRepositories.other.size.used ?? 0, 1),
} as BackupRepositoriesFormatted

View File

@@ -15,6 +15,8 @@
> Users must be able to say: "I had this issue, happy to know it's fixed"
- [XO6] Fix negative "other" value in backup repository dashboard (PR [#10044](https://github.com/vatesfr/xen-orchestra/pull/10044))
### Packages to release
> When modifying a package, add it here with its release type.
@@ -31,4 +33,6 @@
<!--packages-start-->
- @xen-orchestra/web patch
<!--packages-end-->