mirror of
https://github.com/bitwarden/web
synced 2025-12-15 07:43:16 +00:00
adjust paths to portal
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: e07526a1b6...700e945008
@@ -34,11 +34,11 @@ export class OrganizationLayoutComponent implements OnInit, OnDestroy {
|
|||||||
private environmentService: EnvironmentService) { }
|
private environmentService: EnvironmentService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.enterpriseUrl = 'https://enterprise.bitwarden.com';
|
this.enterpriseUrl = 'https://portal.bitwarden.com';
|
||||||
if (this.environmentService.enterpriseUrl != null) {
|
if (this.environmentService.enterpriseUrl != null) {
|
||||||
this.enterpriseUrl = this.environmentService.enterpriseUrl;
|
this.enterpriseUrl = this.environmentService.enterpriseUrl;
|
||||||
} else if (this.environmentService.baseUrl != null) {
|
} else if (this.environmentService.baseUrl != null) {
|
||||||
this.enterpriseUrl = this.environmentService.baseUrl + '/enterprise';
|
this.enterpriseUrl = this.environmentService.baseUrl + '/portal';
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.classList.remove('layout_frontend');
|
document.body.classList.remove('layout_frontend');
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export function initFactory(): Function {
|
|||||||
environmentService.notificationsUrl = isDev ? 'http://localhost:61840' :
|
environmentService.notificationsUrl = isDev ? 'http://localhost:61840' :
|
||||||
'https://notifications.bitwarden.com'; // window.location.origin + '/notifications';
|
'https://notifications.bitwarden.com'; // window.location.origin + '/notifications';
|
||||||
environmentService.enterpriseUrl = isDev ? 'http://localhost:52313' :
|
environmentService.enterpriseUrl = isDev ? 'http://localhost:52313' :
|
||||||
'https://enterprise.bitwarden.com'; // window.location.origin + '/enterprise';
|
'https://portal.bitwarden.com'; // window.location.origin + '/portal';
|
||||||
}
|
}
|
||||||
apiService.setUrls({
|
apiService.setUrls({
|
||||||
base: isDev ? null : window.location.origin,
|
base: isDev ? null : window.location.origin,
|
||||||
|
|||||||
@@ -67,8 +67,10 @@ export class OrganizationPlansComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
|
if (!this.selfHosted) {
|
||||||
const plans = await this.apiService.getPlans();
|
const plans = await this.apiService.getPlans();
|
||||||
this.plans = plans.data;
|
this.plans = plans.data;
|
||||||
|
}
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user