同步修改
This commit is contained in:
1 parent
d647453085
commit
9939943e31
6 files changed
+60
-27
No files matched your search
@@ -268,11 +268,17 @@ export function useBackup() {
|
||||
)
|
||||
await refreshJobsFirstPage()
|
||||
startPolling()
|
||||
const cleanupPending = Boolean(
|
||||
body.abandonJobId
|
||||
&& data.job.payload.cleanupPending === true
|
||||
)
|
||||
toast.add({
|
||||
title: body.abandonJobId
|
||||
? t('storage.backup.siteSyncAbandoned')
|
||||
: t('storage.backup.siteSyncStarted'),
|
||||
color: 'success'
|
||||
title: cleanupPending
|
||||
? t('storage.backup.siteSyncAbandonedPendingCleanup')
|
||||
: body.abandonJobId
|
||||
? t('storage.backup.siteSyncAbandoned')
|
||||
: t('storage.backup.siteSyncStarted'),
|
||||
color: cleanupPending ? 'warning' : 'success'
|
||||
})
|
||||
return data.job
|
||||
} catch (error: unknown) {
|
||||
|
||||
Reference in new issue
Block a user