1
0
mirror of https://github.com/bitwarden/web synced 2025-12-11 13:53:17 +00:00

organizations component in vault

This commit is contained in:
Kyle Spearrin
2018-06-11 10:09:59 -04:00
parent ab353d8498
commit 2bac2f1a39
8 changed files with 74 additions and 22 deletions

View File

@@ -23,6 +23,7 @@ import { AttachmentsComponent } from './attachments.component';
import { CiphersComponent } from './ciphers.component';
import { FolderAddEditComponent } from './folder-add-edit.component';
import { GroupingsComponent } from './groupings.component';
import { OrganizationsComponent } from './organizations.component';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { SyncService } from 'jslib/abstractions/sync.service';
@@ -34,6 +35,7 @@ import { SyncService } from 'jslib/abstractions/sync.service';
export class VaultComponent implements OnInit {
@ViewChild(GroupingsComponent) groupingsComponent: GroupingsComponent;
@ViewChild(CiphersComponent) ciphersComponent: CiphersComponent;
@ViewChild(OrganizationsComponent) organizationsComponent: OrganizationsComponent;
@ViewChild('attachments', { read: ViewContainerRef }) attachmentsModalRef: ViewContainerRef;
@ViewChild('folderAddEdit', { read: ViewContainerRef }) folderAddEditModalRef: ViewContainerRef;
@ViewChild('cipherAddEdit', { read: ViewContainerRef }) cipherAddEditRef: ViewContainerRef;
@@ -53,7 +55,10 @@ export class VaultComponent implements OnInit {
async ngOnInit() {
this.route.queryParams.subscribe(async (params) => {
await this.syncService.fullSync(true);
await this.groupingsComponent.load();
await Promise.all([
this.groupingsComponent.load(),
this.organizationsComponent.load(),
]);
if (params == null) {
this.groupingsComponent.selectedAll = true;