fix(web): consistency in icon of expandable list items
See https://material.io/components/lists#typespull/287/head
parent
5e1a59243c
commit
1c99c2ca42
|
@ -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">
|
||||
|
|
|
@ -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)">
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue