diff --git a/backend/init/migration/migrations/v_1_9.go b/backend/init/migration/migrations/v_1_9.go index d3404c4be..6106ed03d 100644 --- a/backend/init/migration/migrations/v_1_9.go +++ b/backend/init/migration/migrations/v_1_9.go @@ -330,7 +330,7 @@ var UpdateCronjobSpec = &gormigrate.Migration{ Source: snap.From, BackupType: snap.From, BaseModel: model.BaseModel{ - CreatedAt: job.CreatedAt, + CreatedAt: record.CreatedAt, }, } _ = tx.Create(&item).Error @@ -348,7 +348,7 @@ var UpdateCronjobSpec = &gormigrate.Migration{ Source: mapAccount[uint(job.TargetDirID)].Type, BackupType: mapAccount[uint(job.TargetDirID)].Type, BaseModel: model.BaseModel{ - CreatedAt: job.CreatedAt, + CreatedAt: record.CreatedAt, }, } _ = tx.Create(&item).Error @@ -364,7 +364,7 @@ var UpdateCronjobSpec = &gormigrate.Migration{ FileName: path.Base(record.File), BackupType: mapAccount[uint(job.TargetDirID)].Type, BaseModel: model.BaseModel{ - CreatedAt: job.CreatedAt, + CreatedAt: record.CreatedAt, }, } if record.FromLocal { diff --git a/frontend/src/views/setting/snapshot/status/index.vue b/frontend/src/views/setting/snapshot/status/index.vue index bed032c99..ddfd00bc9 100644 --- a/frontend/src/views/setting/snapshot/status/index.vue +++ b/frontend/src/views/setting/snapshot/status/index.vue @@ -48,13 +48,6 @@ {{ $t('commons.table.statusWaiting') }} - - {{ $t('setting.rollback') }} - -
- - - {{ $t('setting.rollback') }} - - -
-
-
+
+ {{ $t('setting.rollback') }} + +
+ + + {{ $t('setting.rollback') }} + + +
+
+
+ + + {{ $t('commons.table.statusSuccess') }} + + + {{ $t('setting.rollback') }} + + + + {{ snapInfo.lastRollbackedAt }} + +
+
+
- + {{ $t('commons.table.statusSuccess') }} - + + {{ $t('commons.table.statusFailed') }} + + + {{ $t('commons.table.statusWaiting') }} + + {{ $t('setting.rollback') }} - - {{ snapInfo.lastRollbackedAt }} - -
-
-
- - - {{ $t('commons.table.statusSuccess') }} - - - {{ $t('commons.table.statusFailed') }} - - - {{ $t('commons.table.statusWaiting') }} - - - {{ $t('setting.rollback') }} - - - - {{ snapInfo.lastRollbackedAt }} - -
- - - {{ snapInfo.rollbackMessage }} - - - - - {{ $t('commons.button.retry') }} - + {{ snapInfo.lastRollbackedAt }} +
+ + + {{ snapInfo.rollbackMessage }} + + + + + {{ $t('commons.button.retry') }} + + +