classStatus:device.enabled?'unregistered':'disabled'/* Display a device in black if it's disabled, otherwise, until we know whether it's registered or not, we set the color to red */,
isRegistered:false,
registered:isRegistered,
isRegistered:device.enabled&&isRegistered,// even though a device is registered, we don't count it as registered if it's disabled
classStatus:device.enabled?(isRegistered?'registered':'unregistered'):'disabled'/* Display a device in black if it's disabled, otherwise, until we know whether it's registered or not, we set the color to red */,