mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
[Enterprise] Updated Environment Settings (#112)
* Initial commit of enterprise environment option * Reverting API/EnvironmentUrls changes
This commit is contained in:
@@ -17,6 +17,7 @@ export class EnvironmentComponent {
|
||||
notificationsUrl: string;
|
||||
baseUrl: string;
|
||||
showCustom = false;
|
||||
enterpriseUrl: string;
|
||||
|
||||
constructor(protected platformUtilsService: PlatformUtilsService, protected environmentService: EnvironmentService,
|
||||
protected i18nService: I18nService) {
|
||||
@@ -26,6 +27,7 @@ export class EnvironmentComponent {
|
||||
this.identityUrl = environmentService.identityUrl || '';
|
||||
this.iconsUrl = environmentService.iconsUrl || '';
|
||||
this.notificationsUrl = environmentService.notificationsUrl || '';
|
||||
this.enterpriseUrl = environmentService.enterpriseUrl || '';
|
||||
}
|
||||
|
||||
async submit() {
|
||||
@@ -36,6 +38,7 @@ export class EnvironmentComponent {
|
||||
webVault: this.webVaultUrl,
|
||||
icons: this.iconsUrl,
|
||||
notifications: this.notificationsUrl,
|
||||
enterprise: this.enterpriseUrl,
|
||||
});
|
||||
|
||||
// re-set urls since service can change them, ex: prefixing https://
|
||||
@@ -45,6 +48,7 @@ export class EnvironmentComponent {
|
||||
this.webVaultUrl = resUrls.webVault;
|
||||
this.iconsUrl = resUrls.icons;
|
||||
this.notificationsUrl = resUrls.notifications;
|
||||
this.enterpriseUrl = resUrls.enterprise;
|
||||
|
||||
this.platformUtilsService.eventTrack('Set Environment URLs');
|
||||
this.platformUtilsService.showToast('success', null, this.i18nService.t('environmentSaved'));
|
||||
|
||||
Reference in New Issue
Block a user