diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-07-02 21:49:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-02 21:49:37 -0700 |
| commit | 080dce80ebedcf1ef2cb66ecb443b21dd89c7c65 (patch) | |
| tree | 954d6ada15c67017e4c9702514bd5bb37048c551 /weed/admin/static/js/admin.js | |
| parent | ac82dd7c079d9209c2a3ec7776f527a6fd3fac6f (diff) | |
| download | seaweedfs-080dce80ebedcf1ef2cb66ecb443b21dd89c7c65.tar.xz seaweedfs-080dce80ebedcf1ef2cb66ecb443b21dd89c7c65.zip | |
weed admin UI dynamically show columns (#6939)
* show counts for rack and disk type
* dynamically display columns if more than one value
* adjust ui
Diffstat (limited to 'weed/admin/static/js/admin.js')
| -rw-r--r-- | weed/admin/static/js/admin.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/weed/admin/static/js/admin.js b/weed/admin/static/js/admin.js index 504e02785..93ae40786 100644 --- a/weed/admin/static/js/admin.js +++ b/weed/admin/static/js/admin.js @@ -698,22 +698,20 @@ function exportCollections() { return; } - const headers = ['Collection Name', 'Data Center', 'Volumes', 'Files', 'Size', 'Disk Types', 'Status']; + const headers = ['Collection Name', 'Volumes', 'Files', 'Size', 'Disk Types']; const rows = []; // Get table rows const tableRows = table.querySelectorAll('tbody tr'); tableRows.forEach(row => { const cells = row.querySelectorAll('td'); - if (cells.length >= 7) { + if (cells.length >= 5) { rows.push([ cells[0].textContent.trim(), cells[1].textContent.trim(), cells[2].textContent.trim(), cells[3].textContent.trim(), - cells[4].textContent.trim(), - formatDiskTypes(cells[5].textContent.trim()), - cells[6].textContent.trim() + formatDiskTypes(cells[4].textContent.trim()) ]); } }); |
