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.
This commit is contained in:
madhawap 2017-05-09 11:44:31 +05:30
parent f0a70d7f27
commit a2897012f9
2 changed files with 3 additions and 1 deletions

View File

@ -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}}

View File

@ -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",