mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-28 12:35:40 +01:00
Hide account switcher border if no accounts (#1254)
This commit is contained in:
parent
cb4e6debf3
commit
a64273f829
@ -32,7 +32,7 @@
|
|||||||
cdkConnectedOverlayMinWidth="250px"
|
cdkConnectedOverlayMinWidth="250px"
|
||||||
>
|
>
|
||||||
<div class="account-switcher-dropdown" [@transformPanel]="'open'">
|
<div class="account-switcher-dropdown" [@transformPanel]="'open'">
|
||||||
<div class="accounts">
|
<div class="accounts" *ngIf="numberOfAccounts > 0">
|
||||||
<a
|
<a
|
||||||
*ngFor="let a of accounts | keyvalue"
|
*ngFor="let a of accounts | keyvalue"
|
||||||
class="account"
|
class="account"
|
||||||
@ -65,7 +65,7 @@
|
|||||||
></i>
|
></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="border"></div>
|
<div class="border" *ngIf="numberOfAccounts > 0"></div>
|
||||||
<ng-container *ngIf="numberOfAccounts < 4">
|
<ng-container *ngIf="numberOfAccounts < 4">
|
||||||
<a class="add" routerLink="/login" (click)="toggle()">
|
<a class="add" routerLink="/login" (click)="toggle()">
|
||||||
<i class="fa fa-plus" aria-hidden="true"></i> {{ "addAccount" | i18n }}
|
<i class="fa fa-plus" aria-hidden="true"></i> {{ "addAccount" | i18n }}
|
||||||
|
Loading…
Reference in New Issue
Block a user