1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

cache groupings page state

This commit is contained in:
Kyle Spearrin
2018-04-12 15:56:27 -04:00
parent cca40157ea
commit fa6fc76346
4 changed files with 104 additions and 35 deletions

View File

@@ -84,9 +84,12 @@ export class AppComponent implements OnInit {
this.i18nService.t('loginExpired'));
}
this.router.navigate(['home']);
this.stateService.purge();
});
this.changeDetectorRef.detectChanges();
});
} else if (msg.command === 'locked') {
this.stateService.purge();
} else if (msg.command === 'showDialog') {
const buttons = [msg.confirmText == null ? this.i18nService.t('ok') : msg.confirmText];
if (msg.cancelText != null) {