diff --git a/@xen-orchestra/web/src/modules/site/remote-resources/use-xo-site-dashboard.ts b/@xen-orchestra/web/src/modules/site/remote-resources/use-xo-site-dashboard.ts index 248d612458..9cc007d9a8 100644 --- a/@xen-orchestra/web/src/modules/site/remote-resources/use-xo-site-dashboard.ts +++ b/@xen-orchestra/web/src/modules/site/remote-resources/use-xo-site-dashboard.ts @@ -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 diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 28976f1ba1..8911d92733 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -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 @@ +- @xen-orchestra/web patch +