mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Use network properties for the network column, since they get updated in real time.
This commit is contained in:
@@ -128,7 +128,19 @@ module.exports = function DeviceColumnService($filter, gettext) {
|
||||
, network: TextCell({
|
||||
title: gettext('Network')
|
||||
, value: function(device) {
|
||||
return device.phone ? device.phone.network : ''
|
||||
if (!device.network) {
|
||||
return ''
|
||||
}
|
||||
|
||||
if (!device.network.connected) {
|
||||
return ''
|
||||
}
|
||||
|
||||
if (device.network.subtype) {
|
||||
return (device.network.type + ' (' + device.network.subtype + ')').toUpperCase()
|
||||
}
|
||||
|
||||
return (device.network.type || '').toUpperCase()
|
||||
}
|
||||
})
|
||||
, display: TextCell({
|
||||
|
||||
Reference in New Issue
Block a user