diff options
| author | chrislu <chris.lu@gmail.com> | 2025-07-02 23:31:17 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-07-02 23:31:17 -0700 |
| commit | 645b6d2603ae41e78ba5eb72f3a47e7c848fc82d (patch) | |
| tree | 9bf93968c2a1bcb91d42cee07e48df5307834bc4 /weed/admin/view/app | |
| parent | 5e6d94319bb5c1435b94c80f013adc88ef605c47 (diff) | |
| download | seaweedfs-645b6d2603ae41e78ba5eb72f3a47e7c848fc82d.tar.xz seaweedfs-645b6d2603ae41e78ba5eb72f3a47e7c848fc82d.zip | |
weed admin: disk types card can also show all disk type values, not just a count.
Diffstat (limited to 'weed/admin/view/app')
| -rw-r--r-- | weed/admin/view/app/cluster_volumes.templ | 2 | ||||
| -rw-r--r-- | weed/admin/view/app/cluster_volumes_templ.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/admin/view/app/cluster_volumes.templ b/weed/admin/view/app/cluster_volumes.templ index 312202f22..445de35b9 100644 --- a/weed/admin/view/app/cluster_volumes.templ +++ b/weed/admin/view/app/cluster_volumes.templ @@ -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> diff --git a/weed/admin/view/app/cluster_volumes_templ.go b/weed/admin/view/app/cluster_volumes_templ.go index 8194bee08..b2b88ca17 100644 --- a/weed/admin/view/app/cluster_volumes_templ.go +++ b/weed/admin/view/app/cluster_volumes_templ.go @@ -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} } |
