mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-14 02:03:39 +00:00
clean up active device selection
when clicking first column
This commit is contained in:
@@ -162,6 +162,10 @@ function switchDevice(id) {
|
||||
if (id === undefined) {
|
||||
document.getElementById('refresh-device-button').disabled = true;
|
||||
document.getElementById('device-settings-table').style.display = 'none';
|
||||
const $activeDevice = document.querySelector('.active-device');
|
||||
if ($activeDevice) {
|
||||
$activeDevice.classList.remove('active-device');
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user