mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fixing icon issue in operation bar
This commit is contained in:
parent
16b67bebda
commit
2c20070720
@ -81,11 +81,25 @@ var operationModule = function () {
|
||||
|
||||
publicMethods.getControlOperations = function (deviceType) {
|
||||
var operations = privateMethods.getOperationsFromFeatures(deviceType, "operation");
|
||||
var features = utility.getDeviceTypeConfig(deviceType).deviceType.features;
|
||||
for (var op in operations) {
|
||||
var iconIdentifier = operations[op].operation;
|
||||
var icon = utility.getOperationIcon(deviceType, iconIdentifier);
|
||||
if (features && features[iconIdentifier]) {
|
||||
var icon = features[iconIdentifier].icon;
|
||||
if (icon) {
|
||||
operations[op]["icon"] = icon;
|
||||
operations[op]["iconFont"] = 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;
|
||||
}
|
||||
// var icon = utility.getOperationIcon(deviceType, iconIdentifier);
|
||||
// if (icon) {
|
||||
// log.error("icon found : " + icon );
|
||||
// operations[op]["icon"] = icon;
|
||||
}
|
||||
}
|
||||
return operations;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user