* [task#121513] Hide the disk usage if the disk is not adjustable.

This commit is contained in:
dingguodong
2024-07-04 15:27:01 +08:00
committed by 曹延义
parent d6828523ee
commit dcf6af8ef7
2 changed files with 7 additions and 6 deletions
+6 -6
View File
@@ -145,14 +145,14 @@ div
setStyle('width', $memoryInfo['rate'])
)
),
icon('db text-' . $volumeInfo['color']),
$lang->instance->volUsage,
span
!empty($diskSettings) ? icon('db text-' . $volumeInfo['color']) : null,
!empty($diskSettings) ? $lang->instance->volUsage: null,
!empty($diskSettings) ? span
(
setClass('text-gray'),
sprintf($lang->instance->volTotal, helper::formatKB($instanceMetric->disk->limit))
),
div
) : null,
!empty($diskSettings) ? div
(
setClass('progress rounded-lg'),
set::title($volumeInfo['tip']),
@@ -165,7 +165,7 @@ div
setClass('progress-bar ' . $volumeInfo['color']),
setStyle('width', $volumeInfo['rate'])
)
)
) : null
) : null
)
),