fix removing no folder when showNoFolderCiphers

This commit is contained in:
Kyle Spearrin 2019-06-07 13:20:23 -04:00
parent c5c2318fbe
commit 0bbe17f6e2
3 changed files with 4 additions and 5 deletions

2
jslib

@ -1 +1 @@
Subproject commit f4f90f83cd40c4ce6c4ceeedb9d359af463a02ed
Subproject commit 8375f7381ad1d113fbf2fe2bd65e90ec4a1631b7

View File

@ -74,8 +74,7 @@
</a>
</div>
</div>
<div class="box list"
*ngIf="nestedFolders && nestedFolders.length && (!showNoFolderCiphers || nestedFolders.length > 1)">
<div class="box list" *ngIf="nestedFolders && nestedFolders.length">
<div class="box-header">
{{'folders' | i18n}}
<span class="flex-right">{{folderCount}}</span>

View File

@ -154,9 +154,9 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
async load() {
await super.load(false);
await this.loadCiphers();
if (this.showNoFolderCiphers && this.folders.length > 0) {
if (this.showNoFolderCiphers && this.nestedFolders.length > 0) {
// Remove "No Folder" from folder listing
this.folders = this.folders.slice(0, this.folders.length - 1);
this.nestedFolders = this.nestedFolders.slice(0, this.nestedFolders.length - 1);
}
super.loaded = true;