link to volume details
This commit is contained in:
@@ -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
Reference in New Issue
Block a user