link to volume details

This commit is contained in:
chrislu
2025-07-04 14:45:13 -07:00
parent df30737505
commit 302e62d480
2 changed files with 4 additions and 4 deletions

View File

@@ -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';

File diff suppressed because one or more lines are too long