mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-29 11:36:36 +08:00
fix system update current version display
This commit is contained in:
@@ -3,6 +3,7 @@ import type { AccessLog, Setting, User } from '../types'
|
||||
|
||||
export interface SystemUpdateStatus {
|
||||
image: string
|
||||
current_version?: string
|
||||
watchtower_image?: string
|
||||
update_mode?: string
|
||||
compose_dir?: string
|
||||
|
||||
@@ -139,7 +139,8 @@ export function SystemUpdatePanel() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-3 md:grid-cols-2 xl:grid-cols-4">
|
||||
<div className="grid gap-3 md:grid-cols-2 xl:grid-cols-5">
|
||||
<UpdateFact label="当前版本" value={status?.current_version || 'dev'} mono />
|
||||
<UpdateFact icon={Server} label="更新方式" value={status?.update_mode === 'compose' ? 'Docker Compose' : '自定义命令'} />
|
||||
<UpdateFact label="Compose 目录" value={status?.compose_dir || '自动识别'} mono />
|
||||
<UpdateFact label="应用镜像" value={status?.image || '-'} mono />
|
||||
|
||||
Reference in New Issue
Block a user