mirror of
https://github.com/bitwarden/web
synced 2025-12-11 05:43:16 +00:00
[fix] Rename skipFilterCollectionRefresh to firstLoaded
This commit is contained in:
@@ -61,7 +61,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
// This is a hack to avoid redundant api calls that fetch OrganizationVaultFilterComponent collections
|
// This is a hack to avoid redundant api calls that fetch OrganizationVaultFilterComponent collections
|
||||||
// When it makes sense to do so we should leverage some other communication method for change events that isn't directly tied to the query param for organizationId
|
// When it makes sense to do so we should leverage some other communication method for change events that isn't directly tied to the query param for organizationId
|
||||||
// i.e. exposing the VaultFiltersService to the OrganizationSwitcherComponent to make relevant updates from a change event instead of just depending on the router
|
// i.e. exposing the VaultFiltersService to the OrganizationSwitcherComponent to make relevant updates from a change event instead of just depending on the router
|
||||||
skipFilterCollectionRefresh = true;
|
firstLoaded = true;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
@@ -112,10 +112,10 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.skipFilterCollectionRefresh) {
|
if (!this.firstLoaded) {
|
||||||
await this.vaultFilterComponent.reloadCollectionsAndFolders();
|
await this.vaultFilterComponent.reloadCollectionsAndFolders();
|
||||||
}
|
}
|
||||||
this.skipFilterCollectionRefresh = false;
|
this.firstLoaded = false;
|
||||||
|
|
||||||
await this.ciphersComponent.reload();
|
await this.ciphersComponent.reload();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user