Enable opening device view via reselecting device from device view

This commit is contained in:
Lukasz.Zeglinski
2019-07-18 14:37:44 +02:00
parent a70c2e47ee
commit da2da8d0a3

View File

@@ -91,7 +91,6 @@ module.exports = function DeviceListIconsDirective(
a.removeAttribute('href')
li.classList.add('device-is-busy')
}
return li
}
}
@@ -159,8 +158,11 @@ module.exports = function DeviceListIconsDirective(
}
if (device.using) {
kickDevice(device)
e.preventDefault()
if (e.target.classList.contains('btn') &&
e.target.classList.contains('state-using')) {
kickDevice(device)
e.preventDefault()
}
}
}
})