fix: account selection (#2926)

* fix: account selection

* fix: styling of disabled accounts

* fix: styling of disabled accounts

* fix: don't show disabled accounts

* fix: remove unused css

* fix: remove unused css

* fix: remove unused css
This commit is contained in:
Fabi 2022-01-06 15:01:37 +01:00 committed by GitHub
parent aa2a1848da
commit e624047d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,10 @@
<div class="lgn-account-selection">
{{ if .Users }}
{{ $displayLoginNameSuffix := and .OrgID (not .DisplayLoginNameSuffix)}}
{{ $orgName := .OrgName }}
{{ range $user := .Users }}
{{ $sessionState := (printf "SelectAccount.SessionState%v" $user.UserSessionState) }}
{{if $user.SelectionPossible}}
<button type="submit" name="userID" value="{{$user.UserID}}" class="lgn-account"
{{if not $user.SelectionPossible}}disabled title="{{t "Errors.User.NotAllowedOrg"}}"{{end}}>
<div class="left">
@ -47,6 +49,7 @@
</button>
{{ end }}
{{ end }}
{{ end }}
<button type="submit" name="userID" value="0" class="lgn-account">
<div class="left">
<div class="lgn-avatar transparent">