mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
* add one time setup dialog for auto confirm
* add one time setup dialog for auto confirm
* fix copy, padding, cleanup observable logic
* cleanup
* cleanup
* refactor
* clean up
* more cleanup
* Fix deleted files
This reverts commit 7c18a5e512.
22 lines
480 B
TypeScript
22 lines
480 B
TypeScript
import { AUTO_CONFIRM, UserKeyDefinition } from "@bitwarden/state";
|
|
|
|
export class AutoConfirmState {
|
|
enabled: boolean;
|
|
showSetupDialog: boolean;
|
|
showBrowserNotification: boolean | undefined;
|
|
|
|
constructor() {
|
|
this.enabled = false;
|
|
this.showSetupDialog = true;
|
|
}
|
|
}
|
|
|
|
export const AUTO_CONFIRM_STATE = UserKeyDefinition.record<AutoConfirmState>(
|
|
AUTO_CONFIRM,
|
|
"autoConfirm",
|
|
{
|
|
deserializer: (autoConfirmState) => autoConfirmState,
|
|
clearOn: [],
|
|
},
|
|
);
|