add dashboard link to emm webapp

merge-requests/1/head
kamidu 8 years ago
parent 5ba338795e
commit f5c3a55aa8

@ -74,6 +74,11 @@
</ul> </ul>
</li> </li>
{{/if}} {{/if}}
{{#if permissions.VIEW_DASHBOARD}}
<li><a href="{{serverURL}}/portal/dashboards/emm-analytics-dashboard/">
<i class="fw fw-pie-chart"></i>Device Management Dashboard</a>
</li>
{{/if}}
{{/zone}} {{/zone}}
{{#zone "navbarCollapsableRightItems"}} {{#zone "navbarCollapsableRightItems"}}

@ -55,9 +55,11 @@ function onRequest(context) {
permissions["LIST_CERTIFICATES"] = userModule.isAuthorized("/permission/admin/device-mgt/certificates/view"); permissions["LIST_CERTIFICATES"] = userModule.isAuthorized("/permission/admin/device-mgt/certificates/view");
permissions["CONFIG_MGT_PERMITTED"] = (permissions["LIST_PLATFORM_CONFIGURATIONS"] || permissions["LIST_CERTIFICATES"]); permissions["CONFIG_MGT_PERMITTED"] = (permissions["LIST_PLATFORM_CONFIGURATIONS"] || permissions["LIST_CERTIFICATES"]);
permissions["LIST_NOTIFICATIONS"] = userModule.isAuthorized("/permission/admin/device-mgt/notifications/view"); permissions["LIST_NOTIFICATIONS"] = userModule.isAuthorized("/permission/admin/device-mgt/notifications/view");
permissions["VIEW_DASHBOARD"] = userModule.isAuthorized("/permission/admin/device-mgt/dashboard/view");
viewModel["permissions"] = permissions; viewModel["permissions"] = permissions;
viewModel["appContext"] = mdmProps["appContext"]; viewModel["appContext"] = mdmProps["appContext"];
viewModel["serverURL"] = mdmProps["httpsWebURL"];
return viewModel; return viewModel;
} }
Loading…
Cancel
Save