1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

search webVaultUrl for settings. closes bitwarden/browser#635 (#657)

This commit is contained in:
Tiago
2018-06-25 08:41:23 -03:00
committed by Kyle Spearrin
parent f14b4b89b9
commit 60bb4f6840
2 changed files with 6 additions and 930 deletions

View File

@@ -18,6 +18,7 @@ import { LockService } from 'jslib/abstractions/lock.service';
import { MessagingService } from 'jslib/abstractions/messaging.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { StorageService } from 'jslib/abstractions/storage.service';
import { EnvironmentService } from 'jslib/abstractions/environment.service';
const RateUrls = {
[DeviceType.Chrome]:
@@ -41,14 +42,16 @@ const RateUrls = {
export class SettingsComponent implements OnInit {
lockOptions: any[];
lockOption: number = null;
constructor(private platformUtilsService: PlatformUtilsService, private i18nService: I18nService,
private analytics: Angulartics2, private lockService: LockService,
private storageService: StorageService, public messagingService: MessagingService,
private router: Router) {
private router: Router, private environmentService: EnvironmentService) {
}
async ngOnInit() {
const showOnLocked = !this.platformUtilsService.isFirefox() && !this.platformUtilsService.isEdge()
&& !this.platformUtilsService.isSafari();
@@ -131,7 +134,8 @@ export class SettingsComponent implements OnInit {
async webVault() {
this.analytics.eventTrack.next({ action: 'Clicked Web Vault' });
BrowserApi.createNewTab('https://vault.bitwarden.com');
let webVaultUrl = this.environmentService.webVaultUrl != undefined ? this.environmentService.webVaultUrl : 'https://vault.bitwarden.com';
BrowserApi.createNewTab(webVaultUrl);
}
import() {