1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

bells and whistles for Send

This commit is contained in:
addison
2021-02-18 13:03:20 -05:00
parent 4a8cf62495
commit ac807b6d54
7 changed files with 170 additions and 78 deletions

View File

@@ -197,6 +197,14 @@ export class AppComponent implements OnInit {
break;
case 'ssoCallback':
this.router.navigate(['sso'], { queryParams: { code: message.code, state: message.state } });
case 'premiumRequired':
const premiumConfirmed = await this.platformUtilsService.showDialog(
this.i18nService.t('premiumRequiredDesc'), this.i18nService.t('premiumRequired'),
this.i18nService.t('learnMore'), this.i18nService.t('cancel'));
if (premiumConfirmed) {
this.openModal<PremiumComponent>(PremiumComponent, this.premiumRef);
}
break;
default:
}
});