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