diff --git a/src/components/setting/mods/backup-config-viewer.tsx b/src/components/setting/mods/backup-config-viewer.tsx index 1ad0b6e..67119be 100644 --- a/src/components/setting/mods/backup-config-viewer.tsx +++ b/src/components/setting/mods/backup-config-viewer.tsx @@ -21,6 +21,7 @@ import { saveWebdavConfig, createWebdavBackup } from "@/services/cmds"; export interface BackupConfigViewerProps { onBackupSuccess: () => Promise; onSaveSuccess: () => Promise; + onRefresh: () => Promise; onInit: () => Promise; setLoading: (loading: boolean) => void; } @@ -29,6 +30,7 @@ export const BackupConfigViewer = memo( ({ onBackupSuccess, onSaveSuccess, + onRefresh, onInit, setLoading, }: BackupConfigViewerProps) => { @@ -186,14 +188,14 @@ export const BackupConfigViewer = memo( {webdavChanged || webdav_url === null || - webdav_username == null || - webdav_password == null ? ( + webdav_username === null || + webdav_password === null ? ( + <> + + + )} diff --git a/src/components/setting/mods/backup-viewer.tsx b/src/components/setting/mods/backup-viewer.tsx index 078e9c5..4b7a370 100644 --- a/src/components/setting/mods/backup-viewer.tsx +++ b/src/components/setting/mods/backup-viewer.tsx @@ -120,6 +120,9 @@ export const BackupViewer = forwardRef((props, ref) => { onSaveSuccess={async () => { fetchAndSetBackupFiles(); }} + onRefresh={async () => { + fetchAndSetBackupFiles(); + }} onInit={async () => { fetchAndSetBackupFiles(); }}