mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
option to disable change password notification
This commit is contained in:
@@ -24,6 +24,7 @@ export class OptionsComponent implements OnInit {
|
||||
disableAutoTotpCopy = false;
|
||||
disableContextMenuItem = false;
|
||||
disableAddLoginNotification = false;
|
||||
disableChangedPasswordNotification = false;
|
||||
showDisableContextMenu = true;
|
||||
disableGa = false;
|
||||
theme: string;
|
||||
@@ -53,6 +54,9 @@ export class OptionsComponent implements OnInit {
|
||||
this.disableAddLoginNotification = await this.storageService.get<boolean>(
|
||||
ConstantsService.disableAddLoginNotificationKey);
|
||||
|
||||
this.disableChangedPasswordNotification = await this.storageService.get<boolean>(
|
||||
ConstantsService.disableChangedPasswordNotificationKey);
|
||||
|
||||
this.disableContextMenuItem = await this.storageService.get<boolean>(
|
||||
ConstantsService.disableContextMenuItemKey);
|
||||
|
||||
@@ -79,6 +83,12 @@ export class OptionsComponent implements OnInit {
|
||||
this.callAnalytics('Add Login Notification', !this.disableAddLoginNotification);
|
||||
}
|
||||
|
||||
async updateChangedPasswordNotification() {
|
||||
await this.storageService.save(ConstantsService.disableChangedPasswordNotificationKey,
|
||||
this.disableChangedPasswordNotification);
|
||||
this.callAnalytics('Changed Password Notification', !this.disableChangedPasswordNotification);
|
||||
}
|
||||
|
||||
async updateDisableContextMenuItem() {
|
||||
await this.storageService.save(ConstantsService.disableContextMenuItemKey,
|
||||
this.disableContextMenuItem);
|
||||
|
||||
Reference in New Issue
Block a user