Merge pull request #1486 from stianst/master
KEYCLOAK-1593 Move impersonate button on user details page
This commit is contained in:
commit
c9451f4f35
2 changed files with 11 additions and 3 deletions
|
@ -111,11 +111,20 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group clearfix">
|
||||||
|
<label class="col-md-2 control-label" for="reqActions">Impersonate user</label>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<button data-ng-show="access.impersonation" class="btn btn-default" data-ng-click="impersonate()">Impersonate</button>
|
||||||
|
</div>
|
||||||
|
<kc-tooltip>Login as this user. If user is in same realm as you, your current login session will be logged out before you are logged in as this user.</kc-tooltip>
|
||||||
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<div data-ng-include data-src="resourceUrl + '/partials/user-attribute-entry.html'"></div>
|
<div data-ng-include data-src="resourceUrl + '/partials/user-attribute-entry.html'"></div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-10 col-md-offset-2" data-ng-show="create && access.manageUsers">
|
<div class="col-md-10 col-md-offset-2" data-ng-show="create && access.manageUsers">
|
||||||
<button kc-save data-ng-show="changed">Save</button>
|
<button kc-save data-ng-show="changed">Save</button>
|
||||||
|
@ -125,7 +134,6 @@
|
||||||
<div class="col-md-10 col-md-offset-2" data-ng-show="!create && access.manageUsers">
|
<div class="col-md-10 col-md-offset-2" data-ng-show="!create && access.manageUsers">
|
||||||
<button kc-save data-ng-disabled="!changed">Save</button>
|
<button kc-save data-ng-disabled="!changed">Save</button>
|
||||||
<button kc-reset data-ng-disabled="!changed">Cancel</button>
|
<button kc-reset data-ng-disabled="!changed">Cancel</button>
|
||||||
<button data-ng-show="access.impersonation" class="btn btn-default" data-ng-click="impersonate()" tooltip="Login as this user. If user is in same realm as you, your current login session will be logged out before you are logged in as this user.">Impersonate</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<button class="btn btn-default btn-block btn-sm" kc-open="/realms/{{realm.realm}}/users/{{user.id}}">Edit</button>
|
<button class="btn btn-default btn-block btn-sm" kc-open="/realms/{{realm.realm}}/users/{{user.id}}">Edit</button>
|
||||||
</td>
|
</td>
|
||||||
<td data-ng-show="access.impersonation" class="kc-action-cell">
|
<td data-ng-show="access.impersonation" class="kc-action-cell">
|
||||||
<button class="btn btn-default btn-block btn-sm" data-ng-click="impersonate(user.id)" tooltip="Login as this user. If user is in same realm as you, your current login session will be logged out before you are logged in as this user.">Impersonate</button>
|
<button class="btn btn-default btn-block btn-sm" data-ng-click="impersonate(user.id)">Impersonate</button>
|
||||||
</td>
|
</td>
|
||||||
<td data-ng-show="access.manageUsers" class="kc-action-cell">
|
<td data-ng-show="access.manageUsers" class="kc-action-cell">
|
||||||
<button class="btn btn-default btn-block btn-sm" data-ng-click="removeUser(user)">Delete</button>
|
<button class="btn btn-default btn-block btn-sm" data-ng-click="removeUser(user)">Delete</button>
|
||||||
|
|
Loading…
Reference in a new issue