[bug] Store collapsedGroupings in accountSettings (#694)
This commit is contained in:
parent
1cbc119ad8
commit
65219f5705
|
@ -51,7 +51,6 @@ export class AccountData {
|
|||
GeneratedPasswordHistory[]
|
||||
> = new EncryptionPair<GeneratedPasswordHistory[], GeneratedPasswordHistory[]>();
|
||||
addEditCipherInfo?: any;
|
||||
collapsedGroupings?: string[];
|
||||
eventCollection?: EventData[];
|
||||
organizations?: { [id: string]: OrganizationData };
|
||||
providers?: { [id: string]: ProviderData };
|
||||
|
@ -105,6 +104,7 @@ export class AccountSettings {
|
|||
biometricLocked?: boolean;
|
||||
biometricUnlock?: boolean;
|
||||
clearClipboard?: number;
|
||||
collapsedGroupings?: string[];
|
||||
defaultUriMatch?: UriMatchType;
|
||||
disableAddLoginNotification?: boolean;
|
||||
disableAutoBiometricsPrompt?: boolean;
|
||||
|
|
|
@ -383,14 +383,14 @@ export class StateService<
|
|||
async getCollapsedGroupings(options?: StorageOptions): Promise<string[]> {
|
||||
return (
|
||||
await this.getAccount(this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()))
|
||||
)?.data?.collapsedGroupings;
|
||||
)?.settings?.collapsedGroupings;
|
||||
}
|
||||
|
||||
async setCollapsedGroupings(value: string[], options?: StorageOptions): Promise<void> {
|
||||
const account = await this.getAccount(
|
||||
this.reconcileOptions(options, await this.defaultOnDiskLocalOptions())
|
||||
);
|
||||
account.data.collapsedGroupings = value;
|
||||
account.settings.collapsedGroupings = value;
|
||||
await this.saveAccount(
|
||||
account,
|
||||
this.reconcileOptions(options, await this.defaultOnDiskLocalOptions())
|
||||
|
|
Loading…
Reference in New Issue