Fix for disabling reboot and upgrade-firmware operations on UI

In order to execute these two operations the enrolled device needs to have the system app installed. Therefore, in order to stop users from trying these two operations on cloud, the icons related to these two operations, on operation bar are disabled.
revert-dabc3590
madhawap 8 years ago
parent f0a70d7f27
commit a2897012f9

@ -36,7 +36,7 @@
}
</style>
{{#each controlOperations}}
<a href="javascript:operationSelect('{{operation}}')">
<a {{#unless isDisabled}} href="javascript:operationSelect('{{operation}}')" {{else}} href="javascript:void(0)" class="op-disabled"{{/unless}}>
{{#if iconFont}}
<i class="fw {{iconFont}}"></i>
{{else}}

@ -68,10 +68,12 @@
},
"DEVICE_REBOOT": {
"icon": "fw-refresh",
"isDisabled" : true,
"permission": "/device-mgt/devices/owning-device/operations/android/reboot"
},
"UPGRADE_FIRMWARE": {
"icon": "fw-hardware",
"isDisabled" : true,
"formParams": [
{
"type": "checkbox",

Loading…
Cancel
Save