mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
updated device type label to defaul device type name
This commit is contained in:
parent
a7074e2e4e
commit
6f5d6abea3
@ -30,9 +30,13 @@ function onRequest(context) {
|
||||
var configUnitName = utility.getTenantedDeviceUnitName(deviceTypeName, "platform.configuration");
|
||||
if (configUnitName) {
|
||||
var deviceTypeConfig = utility.getDeviceTypeConfig(deviceTypeName);
|
||||
var deviceTypeLabel = deviceTypeName;
|
||||
if (deviceTypeConfig) {
|
||||
deviceTypeLabel = deviceTypeConfig.deviceType.label;
|
||||
}
|
||||
deviceTypesArray.push({
|
||||
name: deviceTypeName,
|
||||
label: deviceTypeConfig.deviceType.label,
|
||||
label: deviceTypeLabel,
|
||||
unitName: configUnitName
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user