From f0cc98847f386188ead073e5b99dcce7dc48a512 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Fri, 30 Jan 2026 20:26:39 +0700 Subject: [PATCH] cron button label --- src/pages/Bisync.tsx | 3 ++- src/pages/Copy.tsx | 3 ++- src/pages/Delete.tsx | 3 ++- src/pages/Move.tsx | 3 ++- src/pages/Purge.tsx | 3 ++- src/pages/Sync.tsx | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/pages/Bisync.tsx b/src/pages/Bisync.tsx index fa68e81..01cc07a 100644 --- a/src/pages/Bisync.tsx +++ b/src/pages/Bisync.tsx @@ -224,8 +224,9 @@ export default function Bisync() { if (!dest) return 'Please select a destination path' if (source === dest) return 'Source and destination cannot be the same' if (jsonError) return 'Invalid JSON for ' + jsonError.toUpperCase() + ' options' + if (cronExpression) return 'START AND SCHEDULE BISYNC' return 'START BISYNC' - }, [startBisyncMutation.isPending, source, dest, jsonError]) + }, [startBisyncMutation.isPending, source, dest, jsonError, cronExpression]) const buttonIcon = useMemo(() => { if (startBisyncMutation.isPending) return diff --git a/src/pages/Copy.tsx b/src/pages/Copy.tsx index 242561a..ea76488 100644 --- a/src/pages/Copy.tsx +++ b/src/pages/Copy.tsx @@ -268,8 +268,9 @@ export default function Copy() { if (!dest) return 'Please select a destination path' if (sources[0] === dest) return 'Source and destination cannot be the same' if (jsonError) return 'Invalid JSON for ' + jsonError.toUpperCase() + ' options' + if (cronExpression) return 'START AND SCHEDULE COPY' return 'START COPY' - }, [startCopyMutation.isPending, sources, dest, jsonError]) + }, [startCopyMutation.isPending, sources, dest, jsonError, cronExpression]) const buttonIcon = useMemo(() => { if (startCopyMutation.isPending) return diff --git a/src/pages/Delete.tsx b/src/pages/Delete.tsx index e63a324..ead1f50 100644 --- a/src/pages/Delete.tsx +++ b/src/pages/Delete.tsx @@ -242,8 +242,9 @@ export default function Delete() { if (startDeleteMutation.isPending) return 'STARTING...' if (!sourceFs || sourceFs.length === 0) return 'Please select a source path' if (jsonError) return 'Invalid JSON for ' + jsonError.toUpperCase() + ' options' + if (cronExpression) return 'START AND SCHEDULE DELETE' return 'START DELETE' - }, [startDeleteMutation.isPending, sourceFs, jsonError]) + }, [startDeleteMutation.isPending, sourceFs, jsonError, cronExpression]) const buttonIcon = useMemo(() => { if (startDeleteMutation.isPending) return diff --git a/src/pages/Move.tsx b/src/pages/Move.tsx index 33b5e5b..5f3866b 100644 --- a/src/pages/Move.tsx +++ b/src/pages/Move.tsx @@ -295,8 +295,9 @@ export default function Move() { if (!dest) return 'Please select a destination path' if (sources[0] === dest) return 'Source and destination cannot be the same' if (jsonError) return 'Invalid JSON for ' + jsonError.toUpperCase() + ' options' + if (cronExpression) return 'START AND SCHEDULE MOVE' return 'START MOVE' - }, [startMoveMutation.isPending, sources, dest, jsonError]) + }, [startMoveMutation.isPending, sources, dest, jsonError, cronExpression]) const buttonIcon = useMemo(() => { if (startMoveMutation.isPending) return diff --git a/src/pages/Purge.tsx b/src/pages/Purge.tsx index 85f8c1a..5bd2450 100644 --- a/src/pages/Purge.tsx +++ b/src/pages/Purge.tsx @@ -137,8 +137,9 @@ export default function Purge() { if (startPurgeMutation.isPending) return 'STARTING...' if (!source) return 'Please select a source path' if (jsonError) return 'Invalid JSON for ' + jsonError.toUpperCase() + ' options' + if (cronExpression) return 'START AND SCHEDULE PURGE' return 'START PURGE' - }, [startPurgeMutation.isPending, source, jsonError]) + }, [startPurgeMutation.isPending, source, jsonError, cronExpression]) const buttonIcon = useMemo(() => { if (startPurgeMutation.isPending) return diff --git a/src/pages/Sync.tsx b/src/pages/Sync.tsx index e5d8407..1623c47 100644 --- a/src/pages/Sync.tsx +++ b/src/pages/Sync.tsx @@ -220,8 +220,9 @@ export default function Sync() { if (!dest) return 'Please select a destination path' if (source === dest) return 'Source and destination cannot be the same' if (jsonError) return 'Invalid JSON for ' + jsonError.toUpperCase() + ' options' + if (cronExpression) return 'START AND SCHEDULE SYNC' return 'START SYNC' - }, [startSyncMutation.isPending, source, dest, jsonError]) + }, [startSyncMutation.isPending, source, dest, jsonError, cronExpression]) const buttonIcon = useMemo(() => { if (startSyncMutation.isPending) return