Skip to content

Commit

Permalink
feat(ui): add openid icon
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault committed Aug 25, 2020
1 parent bb65640 commit b9eca49
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ui/src/app/views/auth/signin/signin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,20 @@ export class SigninComponent implements OnInit {
.filter(d => d.type !== 'local' && d.type !== 'ldap' && d.type !== 'builtin')
.sort((a, b) => a.type < b.type ? -1 : 1)
.map(d => {
d.icon = d.type === 'corporate-sso' ? 'shield alternate' : d.type;
switch (d.type) {
case 'corporate-sso': {
d.icon = 'shield alternate';
break;
}
case 'openid-connect': {
d.icon = 'openid';
break;
}
default: {
d.icon = d.type;
break;
}
}
return d;
});

Expand Down
3 changes: 3 additions & 0 deletions ui/src/app/views/settings/user/edit/user.edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ export class UserEditComponent implements OnInit {
case 'corporate-sso':
icon['class'] = ['shield', 'alternate', 'icon'];
break;
case 'openid-connect':
icon['class'] = ['openid', 'icon'];
break;
default:
icon['class'] = [consumer.type, 'icon'];
break;
Expand Down
8 changes: 8 additions & 0 deletions ui/src/app/views/settings/user/edit/user.edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ <h2 class="ui header">
Corporate SSO
</div>
</ng-container>
<ng-container *ngSwitchCase="'openid-connect'">
<div class="center aligned header">
<i class="ui openid icon huge"></i>
</div>
<div class="center aligned description">
OpenID Connect
</div>
</ng-container>
<ng-container *ngSwitchDefault>
<div class="center aligned header">
<i class="ui {{d.type}} icon huge"></i>
Expand Down

0 comments on commit b9eca49

Please sign in to comment.