mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #1214 from n-jay/dep-ui2
UI implementation for DEP management of iOS devices
This commit is contained in:
commit
5ea66b2125
@ -120,6 +120,13 @@
|
||||
Certificate Configurations
|
||||
</a>
|
||||
</li>
|
||||
{{#if iosPluginFlag}}
|
||||
<li>
|
||||
<a href="{{@app.context}}/dep/devices"><i class="fw fw-apple"></i>
|
||||
DEP Configurations
|
||||
</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
@ -28,6 +28,7 @@ function onRequest(context) {
|
||||
}
|
||||
});
|
||||
var userModule = require("/app/modules/business-controllers/user.js")["userModule"];
|
||||
var deviceModule = require("/app/modules/business-controllers/device.js")["deviceModule"];
|
||||
var mdmProps = require("/app/modules/conf-reader/main.js")["conf"];
|
||||
var constants = require("/app/modules/constants.js");
|
||||
var uiPermissions = userModule.getUIPermissions();
|
||||
@ -41,6 +42,17 @@ function onRequest(context) {
|
||||
"device-mgt": []
|
||||
};
|
||||
|
||||
var typesListResponse = deviceModule.getDeviceTypesConfig();
|
||||
var temp = [];
|
||||
temp = typesListResponse["content"];
|
||||
var iosPluginFlag = false;
|
||||
temp.forEach(function(element) {
|
||||
if (element["name"] == "ios") {
|
||||
iosPluginFlag = true;
|
||||
}
|
||||
});
|
||||
context["iosPluginFlag"] = iosPluginFlag;
|
||||
|
||||
// following context.link value comes here based on the value passed at the point
|
||||
// where units are attached to a page zone.
|
||||
// eg: {{unit "appbar" pageLink="users" title="User Management"}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user