1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-19 11:15:21 +01: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

@ -1 +1 @@
Subproject commit af4e01c238b88ac296edfbf300a180e956da7d4b
Subproject commit fc5fcb905fe465e99e85540f6b645c0f11b6704d

View File

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

View File

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