unimpersonate button (#1700)

* add Unimpersonate button when impersonating

* update statik
This commit is contained in:
Caleb Doxsey 2020-12-17 16:38:23 -07:00 committed by GitHub
parent 61ab4e4837
commit 4d3d61eaeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -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