mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
unimpersonate button (#1700)
* add Unimpersonate button when impersonating * update statik
This commit is contained in:
parent
61ab4e4837
commit
4d3d61eaeb
2 changed files with 8 additions and 2 deletions
|
@ -194,6 +194,7 @@
|
|||
<p class="message">
|
||||
Administrators can temporarily impersonate another user.
|
||||
</p>
|
||||
{{if not .State.ImpersonateEmail}}
|
||||
<fieldset>
|
||||
<label>
|
||||
<span>Email</span>
|
||||
|
@ -216,6 +217,7 @@
|
|||
/>
|
||||
</label>
|
||||
</fieldset>
|
||||
{{end}}
|
||||
</section>
|
||||
<div class="flex">
|
||||
{{ .csrfField }}
|
||||
|
@ -225,7 +227,11 @@
|
|||
class="button full"
|
||||
type="submit"
|
||||
>
|
||||
Impersonate
|
||||
{{if .State.ImpersonateEmail}}
|
||||
Unimpersonate
|
||||
{{else}}
|
||||
Impersonate
|
||||
{{end}}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue