fix(web): consistency in icon of expandable list items

See https://material.io/components/lists#types
pull/287/head
Francis Lachapelle 2020-07-24 15:47:17 -04:00
parent 5e1a59243c
commit 1c99c2ca42
3 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,7 @@
ng-click="$AccountDialogController.setDefaultIdentity($event, $index)">
<md-icon ng-class="{ 'md-warn md-hue-2': identity.isDefault }">{{ identity.isDefault ? 'favorite' : 'favorite_border' }}</md-icon>
</md-button>
<md-icon ng-class="{ 'md-rotate-90': $index == $AccountDialogController.selectedIdentity }">chevron_right</md-icon>
<md-icon ng-class="{ 'md-rotate-180': $index == $AccountDialogController.selectedIdentity }">expand_more</md-icon>
</div>
</a>
<md-card-content ng-show="$index == $AccountDialogController.selectedIdentity">

View File

@ -75,7 +75,7 @@
ng-hide="user.uid != acl.selectedUid || user.$isSpecial()">
<md-icon>delete</md-icon>
</md-button>
<md-icon ng-class="{ 'md-rotate-90': acl.showRights(user) }">chevron_right</md-icon>
<md-icon ng-class="{ 'md-rotate-180': acl.showRights(user) }">expand_more</md-icon>
</div>
</a>
<md-card-content id="AccessRightList" ng-show="acl.showRights(user)">

View File

@ -98,6 +98,8 @@
var firstReadonlyIndex = _.findIndex(this.account.identities, { isReadOnly: 1 });
var identity = {};
if (firstReadonlyIndex < 0)
firstReadonlyIndex = this.account.identities.length;
if (this.customFromIsReadonly())
identity.fullName = this.account.identities[0].fullName;
this.account.identities.splice(Math.max(firstReadonlyIndex, 0), 0, identity);