mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +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">
|
<p class="message">
|
||||||
Administrators can temporarily impersonate another user.
|
Administrators can temporarily impersonate another user.
|
||||||
</p>
|
</p>
|
||||||
|
{{if not .State.ImpersonateEmail}}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>
|
<label>
|
||||||
<span>Email</span>
|
<span>Email</span>
|
||||||
|
@ -216,6 +217,7 @@
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
{{end}}
|
||||||
</section>
|
</section>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
{{ .csrfField }}
|
{{ .csrfField }}
|
||||||
|
@ -225,7 +227,11 @@
|
||||||
class="button full"
|
class="button full"
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
Impersonate
|
{{if .State.ImpersonateEmail}}
|
||||||
|
Unimpersonate
|
||||||
|
{{else}}
|
||||||
|
Impersonate
|
||||||
|
{{end}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue