1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-08 01:20:07 +08:00

style: 系统快照恢复样式调整 (#3845)

This commit is contained in:
ssongliu 2024-02-06 14:20:14 +08:00 committed by GitHub
parent fb06e29aa3
commit ece2cb433d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 57 additions and 62 deletions

View File

@ -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 {

View File

@ -48,13 +48,6 @@
<el-tag type="info" v-if="snapInfo.recoverStatus === 'Waiting'">
{{ $t('commons.table.statusWaiting') }}
</el-tag>
<!-- <el-button
style="margin-left: 15px"
@click="recoverSnapshot(true)"
:disabled="snapInfo.recoverStatus !== 'Success'"
>
{{ $t('setting.recover') }}
</el-button> -->
</el-form-item>
<el-form-item
:label="$t('setting.lastRecoverAt')"
@ -77,6 +70,7 @@
</div>
</el-card>
<div v-if="snapInfo.recoverStatus === 'Failed'">
<span class="card-title">{{ $t('setting.rollback') }}</span>
<el-divider class="divider" />
<div v-if="!snapInfo.rollbackStatus && !snapInfo.lastRollbackedAt">
@ -139,6 +133,7 @@
</el-form-item>
</div>
</div>
</div>
</el-col>
</el-row>
</el-form>