mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-09 21:38:19 +01:00
weed admin: disk types card can also show all disk type values, not just a count.
This commit is contained in:
1 parent
5e6d94319b
commit
645b6d2603
3 files changed
+13
-3
No files matched your search
@@ -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