no items message for ciphers
This commit is contained in:
parent
59726ad818
commit
5e7ac7a7ec
|
@ -6,20 +6,26 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="list">
|
<ng-container *ngIf="(ciphers | searchCiphers: searchText) as searchedCiphers">
|
||||||
<a *ngFor="let c of ciphers | searchCiphers: searchText" appStopClick (click)="cipherClicked(c)"
|
<div class="list" *ngIf="searchedCiphers.length > 0">
|
||||||
href="#" title="{{'viewItem' | i18n}}" [ngClass]="{'active': c.id === activeCipherId}">
|
<a *ngFor="let c of searchedCiphers" appStopClick (click)="cipherClicked(c)"
|
||||||
<app-vault-icon [cipher]="c"></app-vault-icon>
|
href="#" title="{{'viewItem' | i18n}}" [ngClass]="{'active': c.id === activeCipherId}">
|
||||||
<span class="text">
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
||||||
{{c.name}}
|
<span class="text">
|
||||||
<i class="fa fa-share-alt text-muted" *ngIf="c.organizationId"
|
{{c.name}}
|
||||||
title="{{'shared' | i18n}}"></i>
|
<i class="fa fa-share-alt text-muted" *ngIf="c.organizationId"
|
||||||
<i class="fa fa-paperclip text-muted" *ngIf="c.hasAttachments"
|
title="{{'shared' | i18n}}"></i>
|
||||||
title="{{'attachments' | i18n}}"></i>
|
<i class="fa fa-paperclip text-muted" *ngIf="c.hasAttachments"
|
||||||
</span>
|
title="{{'attachments' | i18n}}"></i>
|
||||||
<span class="detail">{{c.subTitle}}</span>
|
</span>
|
||||||
</a>
|
<span class="detail">{{c.subTitle}}</span>
|
||||||
</div>
|
</a>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="searchedCiphers.length === 0" class="no-items">
|
||||||
|
<p>{{'noItemsInList' | i18n}}</p>
|
||||||
|
<button (click)="addCipher()" class="btn block primary link">{{'addItem' | i18n}}</button>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<button appBlurClick (click)="addCipher()" class="block primary" title="{{'addItem' | i18n}}">
|
<button appBlurClick (click)="addCipher()" class="block primary" title="{{'addItem' | i18n}}">
|
||||||
|
|
|
@ -442,5 +442,8 @@
|
||||||
},
|
},
|
||||||
"itemInformation": {
|
"itemInformation": {
|
||||||
"message": "Item Information"
|
"message": "Item Information"
|
||||||
|
},
|
||||||
|
"noItemsInList": {
|
||||||
|
"message": "There are no items to list."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,10 @@ img {
|
||||||
a {
|
a {
|
||||||
color: $brand-primary;
|
color: $brand-primary;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover, &:focus {
|
||||||
|
color: darken($brand-primary, 6%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input, select, textarea, button {
|
input, select, textarea, button {
|
||||||
|
|
|
@ -39,4 +39,9 @@
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.link {
|
||||||
|
border: none !important;
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
color: $text-muted !important;
|
color: $text-muted !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
[hidden] {
|
[hidden] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -95,3 +99,4 @@
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
border-right: 1px solid $border-color-dark;
|
border-right: 1px solid $border-color-dark;
|
||||||
|
|
||||||
|
.inner-content {
|
||||||
|
padding-bottom: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
color: $gray-light;
|
color: $gray-light;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
@ -102,6 +106,16 @@
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
max-width: 350px;
|
max-width: 350px;
|
||||||
border-right: 1px solid $border-color-dark;
|
border-right: 1px solid $border-color-dark;
|
||||||
|
|
||||||
|
.no-items {
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#details {
|
#details {
|
||||||
|
@ -191,6 +205,7 @@
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
|
|
Loading…
Reference in New Issue