1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

some filtering logic for sends (#689)

This commit is contained in:
Kyle Spearrin
2020-11-05 14:41:54 -05:00
committed by GitHub
parent 07a3d38bef
commit 0f4f541b11
5 changed files with 77 additions and 8 deletions

View File

@@ -51,9 +51,9 @@
</div>
</div>
<!--Listing Table-->
<table class="table table-hover table-list" *ngIf="sends && sends.length">
<table class="table table-hover table-list" *ngIf="filteredSends && filteredSends.length">
<tbody>
<tr *ngFor="let s of sends">
<tr *ngFor="let s of filteredSends">
<td class="table-list-icon">
<div class="icon" aria-hidden="true">
<i class="fa fa-fw fa-lg fa-file-o" *ngIf="s.type == sendType.File"></i>
@@ -96,6 +96,17 @@
</tr>
</tbody>
</table>
<div class="no-items" *ngIf="filteredSends && !filteredSends.length">
<ng-container *ngIf="!loaded">
<i class="fa fa-spinner fa-spin text-muted" title="{{'loading' | i18n}}" aria-hidden="true"></i>
<span class="sr-only">{{'loading' | i18n}}</span>
</ng-container>
<ng-container *ngIf="loaded">
<p>{{'noSendsInList' | i18n}}</p>
<button (click)="addSend()" class="btn btn-outline-primary">
<i class="fa fa-plus fa-fw"></i>{{'createSend' | i18n}}</button>
</ng-container>
</div>
</div>
</div>
</div>