mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix for Jira issue: EMM-1635
This commit is contained in:
parent
174555b387
commit
1a9ca2d59e
@ -72,7 +72,7 @@
|
||||
<button class="wr-btn" onclick="window.location.href='{{@app.context}}/roles'">
|
||||
View Role List
|
||||
</button>
|
||||
<a href="{{@app.context}}/roles/add-role" class="cu-btn-inner">
|
||||
<a href="{{@app.context}}/role/add" class="cu-btn-inner">
|
||||
<span class="fw-stack">
|
||||
<i class="fw fw-ring fw-stack-2x"></i>
|
||||
<i class="fw fw-add fw-stack-1x"></i>
|
||||
|
||||
@ -15,8 +15,28 @@
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
}}
|
||||
|
||||
{{#zone "userMenu-items"}}
|
||||
{{#zone "userMenu"}}
|
||||
<ul class="nav navbar-right float-remove-xs text-center-xs">
|
||||
<li class="visible-inline-block">
|
||||
<a href="#" class="dropdown" data-toggle="dropdown">
|
||||
<span class="icon fw-stack fw-lg">
|
||||
<i class="fw fw-circle fw-stack-2x"></i>
|
||||
<i class="fw fw-user fw-stack-1x fw-inverse"></i>
|
||||
</span>
|
||||
<span class="hidden-xs add-padding-left-1x">
|
||||
{{#if isSuperTenant }}
|
||||
{{@user.username}}<span class="caret"></span>
|
||||
{{else}}
|
||||
{{@user.username}}@{{@user.domain}}<span class="caret"></span>
|
||||
{{/if}}
|
||||
</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right float-remove-xs position-static-xs text-center-xs remove-margin-xs slideInDown"
|
||||
role="menu">
|
||||
<li class="dropdown-header visible-xs">
|
||||
{{@user.username}}<span class="caret"></span>
|
||||
</li>
|
||||
<li class="divider visible-xs"></li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" id="change-password">Change password</a>
|
||||
</li>
|
||||
@ -39,7 +59,8 @@
|
||||
</span>
|
||||
Change password
|
||||
</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i
|
||||
class="fw fw-cancel"></i></button>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
|
||||
@ -85,7 +106,8 @@
|
||||
</span>
|
||||
Password has been successfully updated
|
||||
</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i
|
||||
class="fw fw-cancel"></i></button>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
|
||||
@ -99,7 +121,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
{{/zone}}
|
||||
|
||||
{{#zone "bottomJs"}}
|
||||
{{js "/js/user-menu.js"}}
|
||||
{{/zone}}
|
||||
@ -16,7 +16,15 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
function onRequest() {
|
||||
function onRequest(context) {
|
||||
var constants = require("/app/modules/constants.js");
|
||||
return session.get(constants["USER_SESSION_KEY"]);
|
||||
var user = context.user;
|
||||
var isSuperTenant = false;
|
||||
if (user.tenantId == -1234){
|
||||
isSuperTenant = true;
|
||||
}
|
||||
var viewModal = {};
|
||||
viewModal.isSuperTenant = isSuperTenant;
|
||||
viewModal.USER_SESSION_KEY = session.get(constants["USER_SESSION_KEY"]);
|
||||
return viewModal;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user