A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.
fix: minor ui issues.
towfiqi59c1e921cc84
diff --git a/frontend/src/services/backups.ts b/frontend/src/services/backups.tsindex 032e569..3786600 100644--- a/frontend/src/services/backups.ts+++ b/frontend/src/services/backups.ts@@ -155,6 +155,9 @@ export function useGetBackupProgress(payload: { id: string; sourceId: string; sorefetchOnMount: true,retry: false,refetchInterval(query) {+ // Only refetch if the browser tab is active+ // if (document.hidden) return false;+// console.log('query :', query.state?.data);const progressData = query.state?.data;diff --git a/frontend/src/services/restores.ts b/frontend/src/services/restores.tsindex 14793e3..ff99cfe 100644--- a/frontend/src/services/restores.ts+++ b/frontend/src/services/restores.ts@@ -234,6 +234,9 @@ export function useGetRestoreProgress(payload: { id: string; sourceId: string; srefetchOnMount: true,retry: false,refetchInterval(query) {+ // Only refetch if the browser tab is active+ // if (document.hidden) return false;+const progressData = query.state?.data;// Check if backup is finished by looking for a "finished" phase eventdiff --git a/frontend/src/utils/helpers.ts b/frontend/src/utils/helpers.tsindex 28ba100..86d9111 100644--- a/frontend/src/utils/helpers.ts+++ b/frontend/src/utils/helpers.ts@@ -416,16 +416,21 @@ export const getAvailableCliApps = (platform?: string) => {switch (platform) {case 'win32':+ case 'windows':+ case 'Windows':return availableShells.Windows;case 'darwin':return availableShells.MacOs;case 'linux':+ case 'Linux':return availableShells.Linux;default:const allShells: { label: string; value: string }[] = [];(Object.keys(availableShells) as typeofOSType[]).map((OSType) => {availableShells[OSType].forEach((shell) => {- allShells.push({ label: OSType + ': ' + shell.label, value: shell.value });+ if (allShells.findIndex((s) => s.value === shell.value) === -1) {+ allShells.push({ label: `${shell.label} (${shell.value})`, value: shell.value });+ }});});return allShells;