mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-04 18:37:45 +01:00
stub out billing component
This commit is contained in:
parent
38e87b1af0
commit
318b750603
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit a097ef9beabe7da67c4c338e85a15bf3ad02a7f1
|
Subproject commit 3aebe1a09a282fdba1a2b27d42e0c154635b3188
|
@ -19,6 +19,7 @@ import { DomainRulesComponent } from './settings/domain-rules.component';
|
|||||||
import { OptionsComponent } from './settings/options.component';
|
import { OptionsComponent } from './settings/options.component';
|
||||||
import { SettingsComponent } from './settings/settings.component';
|
import { SettingsComponent } from './settings/settings.component';
|
||||||
import { TwoFactorSetupComponent } from './settings/two-factor-setup.component';
|
import { TwoFactorSetupComponent } from './settings/two-factor-setup.component';
|
||||||
|
import { UserBillingComponent } from './settings/user-billing.component';
|
||||||
|
|
||||||
import { BreachReportComponent } from './tools/breach-report.component';
|
import { BreachReportComponent } from './tools/breach-report.component';
|
||||||
import { ExportComponent } from './tools/export.component';
|
import { ExportComponent } from './tools/export.component';
|
||||||
@ -58,6 +59,7 @@ const routes: Routes = [
|
|||||||
{ path: 'options', component: OptionsComponent, canActivate: [AuthGuardService] },
|
{ path: 'options', component: OptionsComponent, canActivate: [AuthGuardService] },
|
||||||
{ path: 'domain-rules', component: DomainRulesComponent, canActivate: [AuthGuardService] },
|
{ path: 'domain-rules', component: DomainRulesComponent, canActivate: [AuthGuardService] },
|
||||||
{ path: 'two-factor', component: TwoFactorSetupComponent, canActivate: [AuthGuardService] },
|
{ path: 'two-factor', component: TwoFactorSetupComponent, canActivate: [AuthGuardService] },
|
||||||
|
{ path: 'billing', component: UserBillingComponent, canActivate: [AuthGuardService] },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -50,6 +50,7 @@ import { TwoFactorSetupComponent } from './settings/two-factor-setup.component';
|
|||||||
import { TwoFactorU2fComponent } from './settings/two-factor-u2f.component';
|
import { TwoFactorU2fComponent } from './settings/two-factor-u2f.component';
|
||||||
import { TwoFactorVerifyComponent } from './settings/two-factor-verify.component';
|
import { TwoFactorVerifyComponent } from './settings/two-factor-verify.component';
|
||||||
import { TwoFactorYubiKeyComponent } from './settings/two-factor-yubikey.component';
|
import { TwoFactorYubiKeyComponent } from './settings/two-factor-yubikey.component';
|
||||||
|
import { UserBillingComponent } from './settings/user-billing.component';
|
||||||
|
|
||||||
import { BreachReportComponent } from './tools/breach-report.component';
|
import { BreachReportComponent } from './tools/breach-report.component';
|
||||||
import { ExportComponent } from './tools/export.component';
|
import { ExportComponent } from './tools/export.component';
|
||||||
@ -162,6 +163,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
|||||||
TwoFactorU2fComponent,
|
TwoFactorU2fComponent,
|
||||||
TwoFactorVerifyComponent,
|
TwoFactorVerifyComponent,
|
||||||
TwoFactorYubiKeyComponent,
|
TwoFactorYubiKeyComponent,
|
||||||
|
UserBillingComponent,
|
||||||
UserLayoutComponent,
|
UserLayoutComponent,
|
||||||
VaultComponent,
|
VaultComponent,
|
||||||
],
|
],
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
Organizations
|
Organizations
|
||||||
</a>
|
</a>
|
||||||
<a routerLink="billing" class="list-group-item" routerLinkActive="active">
|
<a routerLink="billing" class="list-group-item" routerLinkActive="active">
|
||||||
Billing & Licensing
|
{{'billingAndLicensing' | i18n}}
|
||||||
</a>
|
</a>
|
||||||
<a routerLink="two-factor" class="list-group-item" routerLinkActive="active">
|
<a routerLink="two-factor" class="list-group-item" routerLinkActive="active">
|
||||||
{{'twoStepLogin' | i18n}}
|
{{'twoStepLogin' | i18n}}
|
||||||
|
3
src/app/settings/user-billing.component.html
Normal file
3
src/app/settings/user-billing.component.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<div class="page-header">
|
||||||
|
<h1>{{'billingAndLicensing' | i18n}}</h1>
|
||||||
|
</div>
|
20
src/app/settings/user-billing.component.ts
Normal file
20
src/app/settings/user-billing.component.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import {
|
||||||
|
Component,
|
||||||
|
OnInit,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
|
import { TokenService } from 'jslib/abstractions/token.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-user-billing',
|
||||||
|
templateUrl: 'user-billing.component.html',
|
||||||
|
})
|
||||||
|
export class UserBillingComponent implements OnInit {
|
||||||
|
premium = false;
|
||||||
|
|
||||||
|
constructor(private tokenService: TokenService) { }
|
||||||
|
|
||||||
|
async ngOnInit() {
|
||||||
|
this.premium = this.tokenService.getPremium();
|
||||||
|
}
|
||||||
|
}
|
@ -1188,5 +1188,8 @@
|
|||||||
},
|
},
|
||||||
"reportError": {
|
"reportError": {
|
||||||
"message": "An error occurred trying to load the report. Try again"
|
"message": "An error occurred trying to load the report. Try again"
|
||||||
|
},
|
||||||
|
"billingAndLicensing": {
|
||||||
|
"message": "Billing & Licensing"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user