diff --git a/jslib b/jslib index 1e6b3b4aae..786fa02b90 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 1e6b3b4aae84495d757d02583d0d69a8d18a029b +Subproject commit 786fa02b90d64044aee23011a18f6e202856a362 diff --git a/src/app/organizations/vault/groupings.component.ts b/src/app/organizations/vault/groupings.component.ts index 73ad717944..465fd45234 100644 --- a/src/app/organizations/vault/groupings.component.ts +++ b/src/app/organizations/vault/groupings.component.ts @@ -4,6 +4,8 @@ import { ApiService } from 'jslib/abstractions/api.service'; import { CollectionService } from 'jslib/abstractions/collection.service'; import { FolderService } from 'jslib/abstractions/folder.service'; import { I18nService } from 'jslib/abstractions/i18n.service'; +import { StorageService } from 'jslib/abstractions/storage.service'; +import { UserService } from 'jslib/abstractions/user.service'; import { CollectionData } from 'jslib/models/data/collectionData'; import { Collection } from 'jslib/models/domain/collection'; @@ -21,8 +23,9 @@ export class GroupingsComponent extends BaseGroupingsComponent { organization: Organization; constructor(collectionService: CollectionService, folderService: FolderService, + storageService: StorageService, userService: UserService, private apiService: ApiService, private i18nService: I18nService) { - super(collectionService, folderService); + super(collectionService, folderService, storageService, userService); } async loadCollections() { @@ -48,4 +51,12 @@ export class GroupingsComponent extends BaseGroupingsComponent { this.collections.push(unassignedCollection); this.nestedCollections = await this.collectionService.getAllNested(this.collections); } + + collapse(grouping: CollectionView) { + super.collapse(grouping, 'org_'); + } + + isCollapsed(grouping: CollectionView) { + return super.isCollapsed(grouping, 'org_'); + } } diff --git a/src/app/vault/groupings.component.html b/src/app/vault/groupings.component.html index f4aa2a89b7..5f3f100af2 100644 --- a/src/app/vault/groupings.component.html +++ b/src/app/vault/groupings.component.html @@ -55,14 +55,14 @@
  • -