1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

update badge and menu on ciphers added/edited

This commit is contained in:
Kyle Spearrin
2019-01-03 10:22:55 -05:00
parent 68629bde57
commit 74e150116e
3 changed files with 7 additions and 4 deletions

2
jslib

Submodule jslib updated: af4e01c238...fc5fcb905f

View File

@@ -135,6 +135,8 @@ export default class RuntimeBackground {
await this.saveNever(sender.tab); await this.saveNever(sender.tab);
break; break;
case 'bgUpdateContextMenu': case 'bgUpdateContextMenu':
case 'editedCipher':
case 'addedCipher':
await this.main.refreshBadgeAndMenu(); await this.main.refreshBadgeAndMenu();
break; break;
case 'bgReseedStorage': case 'bgReseedStorage':

View File

@@ -10,6 +10,7 @@ import { CipherService } from 'jslib/abstractions/cipher.service';
import { CollectionService } from 'jslib/abstractions/collection.service'; import { CollectionService } from 'jslib/abstractions/collection.service';
import { FolderService } from 'jslib/abstractions/folder.service'; import { FolderService } from 'jslib/abstractions/folder.service';
import { I18nService } from 'jslib/abstractions/i18n.service'; import { I18nService } from 'jslib/abstractions/i18n.service';
import { MessagingService } from 'jslib/abstractions/messaging.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { StateService } from 'jslib/abstractions/state.service'; import { StateService } from 'jslib/abstractions/state.service';
import { UserService } from 'jslib/abstractions/user.service'; import { UserService } from 'jslib/abstractions/user.service';
@@ -27,10 +28,10 @@ export class AddEditComponent extends BaseAddEditComponent {
i18nService: I18nService, platformUtilsService: PlatformUtilsService, i18nService: I18nService, platformUtilsService: PlatformUtilsService,
auditService: AuditService, stateService: StateService, auditService: AuditService, stateService: StateService,
userService: UserService, collectionService: CollectionService, userService: UserService, collectionService: CollectionService,
private route: ActivatedRoute, private router: Router, messagingService: MessagingService, private route: ActivatedRoute,
private location: Location) { private router: Router, private location: Location) {
super(cipherService, folderService, i18nService, platformUtilsService, auditService, stateService, super(cipherService, folderService, i18nService, platformUtilsService, auditService, stateService,
userService, collectionService); userService, collectionService, messagingService);
} }
async ngOnInit() { async ngOnInit() {