From a85318111cf1fa917806c2c124f46e1ac54d51eb Mon Sep 17 00:00:00 2001
From: Kwak Byoung Min <67214970+doma17@users.noreply.github.com>
Date: Wed, 1 Jul 2026 00:31:37 +0900
Subject: [PATCH] admin: restore cluster volume page CSV export (#10155)
---
weed/admin/view/app/cluster_volumes.templ | 7 +------
weed/admin/view/app/cluster_volumes_templ.go | 2 +-
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/weed/admin/view/app/cluster_volumes.templ b/weed/admin/view/app/cluster_volumes.templ
index a1b4bcb44..fb4a0bba6 100644
--- a/weed/admin/view/app/cluster_volumes.templ
+++ b/weed/admin/view/app/cluster_volumes.templ
@@ -588,11 +588,6 @@ templ ClusterVolumes(data dash.ClusterVolumesData) {
window.location.href = url.toString();
}
- function exportVolumes() {
- // TODO: Implement volume export functionality
- alert('Export functionality to be implemented');
- }
-
function viewVolumeDetails(volumeId) {
// Get the server from the current row - works for both buttons and volume ID links
const clickedElement = event.target;
@@ -724,4 +719,4 @@ func maxInt(a, b int) int {
return a
}
return b
-}
\ No newline at end of file
+}
diff --git a/weed/admin/view/app/cluster_volumes_templ.go b/weed/admin/view/app/cluster_volumes_templ.go
index 50421b01a..806fe6ba0 100644
--- a/weed/admin/view/app/cluster_volumes_templ.go
+++ b/weed/admin/view/app/cluster_volumes_templ.go
@@ -1048,7 +1048,7 @@ func ClusterVolumes(data dash.ClusterVolumesData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}