mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix issue in showing dynamic icons
This commit is contained in:
parent
51a237bc19
commit
5ff3ba3fcc
@ -81,21 +81,11 @@ var operationModule = function () {
|
|||||||
|
|
||||||
publicMethods.getControlOperations = function (deviceType) {
|
publicMethods.getControlOperations = function (deviceType) {
|
||||||
var operations = privateMethods.getOperationsFromFeatures(deviceType, "operation");
|
var operations = privateMethods.getOperationsFromFeatures(deviceType, "operation");
|
||||||
var features = utility.getDeviceTypeConfig(deviceType).deviceType.features;
|
|
||||||
for (var op in operations) {
|
for (var op in operations) {
|
||||||
var iconIdentifier = operations[op].operation;
|
var iconIdentifier = operations[op].operation;
|
||||||
if (features && features[iconIdentifier]) {
|
var icon = utility.getOperationIcon(deviceType, iconIdentifier);
|
||||||
var icon = features[iconIdentifier].icon;
|
|
||||||
if (icon) {
|
if (icon) {
|
||||||
operations[op]["iconFont"] = icon;
|
operations[op]["icon"] = icon;
|
||||||
} else if (iconPath) {
|
|
||||||
var iconPath = utility.getOperationIcon(deviceType, iconIdentifier);
|
|
||||||
operations[op]["icon"] = iconPath;
|
|
||||||
}
|
|
||||||
var formParams = features[iconIdentifier].formParams;
|
|
||||||
if (formParams) {
|
|
||||||
operations[op]["uiParams"] = formParams;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return operations;
|
return operations;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user