diff --git a/src/app/organizations/settings/settings.component.html b/src/app/organizations/settings/settings.component.html
index af65c40125..2dac5ac185 100644
--- a/src/app/organizations/settings/settings.component.html
+++ b/src/app/organizations/settings/settings.component.html
@@ -10,7 +10,7 @@
{{'subscription' | i18n}}
-
+
{{'billing' | i18n}}
diff --git a/src/app/organizations/settings/settings.component.ts b/src/app/organizations/settings/settings.component.ts
index 33abd2230e..c2db836085 100644
--- a/src/app/organizations/settings/settings.component.ts
+++ b/src/app/organizations/settings/settings.component.ts
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
+import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { UserService } from 'jslib/abstractions/user.service';
@Component({
@@ -9,11 +10,14 @@ import { UserService } from 'jslib/abstractions/user.service';
})
export class SettingsComponent {
access2fa = false;
+ selfHosted: boolean;
- constructor(private route: ActivatedRoute, private userService: UserService) { }
+ constructor(private route: ActivatedRoute, private userService: UserService,
+ private platformUtilsService: PlatformUtilsService) { }
ngOnInit() {
this.route.parent.params.subscribe(async (params) => {
+ this.selfHosted = await this.platformUtilsService.isSelfHost();
const organization = await this.userService.getOrganization(params.organizationId);
this.access2fa = organization.use2fa;
});
diff --git a/src/app/settings/settings.component.html b/src/app/settings/settings.component.html
index 7acfc03e2d..2ed3911852 100644
--- a/src/app/settings/settings.component.html
+++ b/src/app/settings/settings.component.html
@@ -19,7 +19,7 @@
{{'goPremium' | i18n}}
-
+
{{'billing' | i18n}}
diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts
index 68b398f78b..083c538bc7 100644
--- a/src/app/settings/settings.component.ts
+++ b/src/app/settings/settings.component.ts
@@ -5,6 +5,7 @@ import {
OnInit,
} from '@angular/core';
+import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { TokenService } from 'jslib/abstractions/token.service';
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
@@ -17,9 +18,10 @@ const BroadcasterSubscriptionId = 'SettingsComponent';
})
export class SettingsComponent implements OnInit, OnDestroy {
premium: boolean;
+ selfHosted: boolean;
constructor(private tokenService: TokenService, private broadcasterService: BroadcasterService,
- private ngZone: NgZone) { }
+ private ngZone: NgZone, private platformUtilsService: PlatformUtilsService) { }
async ngOnInit() {
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
@@ -33,6 +35,7 @@ export class SettingsComponent implements OnInit, OnDestroy {
});
});
+ this.selfHosted = await this.platformUtilsService.isSelfHost();
await this.load();
}