link to volume details
This commit is contained in:
@@ -593,9 +593,9 @@ templ ClusterVolumes(data dash.ClusterVolumesData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function viewVolumeDetails(volumeId) {
|
function viewVolumeDetails(volumeId) {
|
||||||
// Get the server from the current row
|
// Get the server from the current row - works for both buttons and volume ID links
|
||||||
const button = event.target.closest('button');
|
const clickedElement = event.target;
|
||||||
const row = button.closest('tr');
|
const row = clickedElement.closest('tr');
|
||||||
const serverCell = row.querySelector('td:nth-child(2) a');
|
const serverCell = row.querySelector('td:nth-child(2) a');
|
||||||
const server = serverCell ? serverCell.textContent.trim() : 'unknown';
|
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