weed admin: disk types card can also show all disk type values, not just a count.

This commit is contained in:
chrislu
2025-07-02 23:31:17 -07:00
parent 5e6d94319b
commit 645b6d2603
3 changed files with 13 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ templ ClusterVolumes(data dash.ClusterVolumesData) {
if data.DiskTypeCount == 1 {
{data.SingleDiskType}
} else {
{fmt.Sprintf("%d", data.DiskTypeCount)}
{strings.Join(data.AllDiskTypes, ", ")}
}
</div>
</div>

View File

@@ -262,7 +262,7 @@ func ClusterVolumes(data dash.ClusterVolumesData) templ.Component {
}
} else {
var templ_7745c5c3_Var11 string
templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", data.DiskTypeCount))
templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(data.AllDiskTypes, ", "))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/cluster_volumes.templ`, Line: 164, Col: 78}
}