Browse Source

link to volume details

pull/6943/head
chrislu 3 months ago
parent
commit
302e62d480
  1. 6
      weed/admin/view/app/cluster_volumes.templ
  2. 2
      weed/admin/view/app/cluster_volumes_templ.go

6
weed/admin/view/app/cluster_volumes.templ

@ -593,9 +593,9 @@ templ ClusterVolumes(data dash.ClusterVolumesData) {
}
function viewVolumeDetails(volumeId) {
// Get the server from the current row
const button = event.target.closest('button');
const row = button.closest('tr');
// Get the server from the current row - works for both buttons and volume ID links
const clickedElement = event.target;
const row = clickedElement.closest('tr');
const serverCell = row.querySelector('td:nth-child(2) a');
const server = serverCell ? serverCell.textContent.trim() : 'unknown';

2
weed/admin/view/app/cluster_volumes_templ.go
File diff suppressed because it is too large
View File

Loading…
Cancel
Save