mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-05 18:47:52 +01:00
added status badges to Send
This commit is contained in:
parent
3406734eed
commit
f429996d5c
@ -43,14 +43,39 @@
|
|||||||
[infiniteScrollContainer]="'#items .content'" [fromRoot]="true" (scrolled)="loadMore()">
|
[infiniteScrollContainer]="'#items .content'" [fromRoot]="true" (scrolled)="loadMore()">
|
||||||
<a *ngFor="let s of filteredSends" appStopClick (click)="selectSend(s.id)"
|
<a *ngFor="let s of filteredSends" appStopClick (click)="selectSend(s.id)"
|
||||||
href="#" title="{{'viewItem' | i18n}}" (contextmenu)="viewSendMenu(s)"
|
href="#" title="{{'viewItem' | i18n}}" (contextmenu)="viewSendMenu(s)"
|
||||||
[ngClass]="{'active': s.id === sendId}">
|
[ngClass]="{'active': s.id === sendId}" class="flex-list-item">
|
||||||
<div class="icon" aria-hidden="true">
|
<div class="item-icon" aria-hidden="true">
|
||||||
<i class="fa fa-fw fa-lg" [ngClass]="s.type == 0 ? 'fa-file-o' : 'fa-file-text-o'"></i>
|
<i class="fa fa-fw fa-lg" [ngClass]="s.type == 0 ? 'fa-file-o' : 'fa-file-text-o'"></i>
|
||||||
</div>
|
</div>
|
||||||
<span class="text">
|
<div class="item-content">
|
||||||
{{s.name}}
|
<div class="item-title">
|
||||||
</span>
|
{{s.name}}
|
||||||
<span class="detail">{{s.deletionDate | date}}</span>
|
<span class="title-badges">
|
||||||
|
<span appStopClick class="text-badge" *ngIf="s.disabled">
|
||||||
|
{{'disabled' | i18n}}
|
||||||
|
</span>
|
||||||
|
<ng-container >
|
||||||
|
<i class="fa fa-key" appStopProp title="{{'password' | i18n}}" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{'password' | i18n}}</span>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container >
|
||||||
|
<i class="fa fa-ban" appStopProp title="{{'maxAccessCountReached' | i18n}}"
|
||||||
|
aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{'maxAccessCountReached' | i18n}}</span>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container >
|
||||||
|
<i class="fa fa-clock-o" appStopProp title="{{'expired' | i18n}}" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{'expired' | i18n}}</span>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container >
|
||||||
|
<i class="fa fa-trash" appStopProp title="{{'pendingDeletion' | i18n}}"
|
||||||
|
aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{'pendingDeletion' | i18n}}</span>
|
||||||
|
</ng-container>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<span class="item-details">{{s.deletionDate | date}}</span>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="no-items" *ngIf="!filteredSends.length">
|
<div class="no-items" *ngIf="!filteredSends.length">
|
||||||
|
@ -1638,5 +1638,17 @@
|
|||||||
},
|
},
|
||||||
"copyLink": {
|
"copyLink": {
|
||||||
"message": "Copy link"
|
"message": "Copy link"
|
||||||
|
},
|
||||||
|
"disabled": {
|
||||||
|
"message": "Disabled"
|
||||||
|
},
|
||||||
|
"maxAccessCountReached": {
|
||||||
|
"message": "Max access count reached"
|
||||||
|
},
|
||||||
|
"expired": {
|
||||||
|
"message": "Expired"
|
||||||
|
},
|
||||||
|
"pendingDeletion": {
|
||||||
|
"message": "Pending deletion"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,3 +101,43 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list > a.flex-list-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.item-icon {
|
||||||
|
margin-left: -5px;
|
||||||
|
margin-right: 4px;
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed('mutedColor');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-content {
|
||||||
|
.item-title {
|
||||||
|
.title-badges {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed('mutedColor');
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-badge {
|
||||||
|
padding-left: 2px;
|
||||||
|
margin-right: 3px;
|
||||||
|
font-size: $font-size-small;
|
||||||
|
border-radius: 3px;
|
||||||
|
@include themify($themes) {
|
||||||
|
background-color: themed('mutedColorBackground');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-details {
|
||||||
|
font-size: $font-size-small;
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed('mutedColor');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -66,6 +66,7 @@ $themes: (
|
|||||||
headingButtonHoverColor: $gray-light,
|
headingButtonHoverColor: $gray-light,
|
||||||
labelColor: $gray-light,
|
labelColor: $gray-light,
|
||||||
mutedColor: $text-muted,
|
mutedColor: $text-muted,
|
||||||
|
mutedColorBackground: lighten($text-muted, 35%),
|
||||||
totpStrokeColor: $brand-primary,
|
totpStrokeColor: $brand-primary,
|
||||||
boxRowButtonColor: $brand-primary,
|
boxRowButtonColor: $brand-primary,
|
||||||
boxRowButtonHoverColor: darken($brand-primary, 10%),
|
boxRowButtonHoverColor: darken($brand-primary, 10%),
|
||||||
@ -117,6 +118,7 @@ $themes: (
|
|||||||
headingButtonHoverColor: #ffffff,
|
headingButtonHoverColor: #ffffff,
|
||||||
labelColor: #a3a3a3,
|
labelColor: #a3a3a3,
|
||||||
mutedColor: #a3a3a3,
|
mutedColor: #a3a3a3,
|
||||||
|
mutedColorBackground: darken(#a3a3a3, 35%),
|
||||||
totpStrokeColor: #cacaca,
|
totpStrokeColor: #cacaca,
|
||||||
boxRowButtonColor: #cacaca,
|
boxRowButtonColor: #cacaca,
|
||||||
boxRowButtonHoverColor: #ffffff,
|
boxRowButtonHoverColor: #ffffff,
|
||||||
@ -168,6 +170,7 @@ $themes: (
|
|||||||
headingButtonHoverColor: $nord6,
|
headingButtonHoverColor: $nord6,
|
||||||
labelColor: $nord4,
|
labelColor: $nord4,
|
||||||
mutedColor: $nord4,
|
mutedColor: $nord4,
|
||||||
|
mutedColorBackground: darken($nord4, 35%),
|
||||||
totpStrokeColor: $nord4,
|
totpStrokeColor: $nord4,
|
||||||
boxRowButtonColor: $nord4,
|
boxRowButtonColor: $nord4,
|
||||||
boxRowButtonHoverColor: $nord6,
|
boxRowButtonHoverColor: $nord6,
|
||||||
|
Loading…
Reference in New Issue
Block a user