weed admin: disk types card can also show all disk type values, not just a count.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user