mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
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:
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…
Reference in New Issue
Block a user