1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

set icons server environment url

This commit is contained in:
Kyle Spearrin
2017-10-23 23:05:24 -04:00
parent a6d56975fb
commit 0c90d9dba2
5 changed files with 30 additions and 4 deletions

View File

@@ -11,13 +11,15 @@
$scope.webVaultUrl = environmentService.webVaultUrl || '';
$scope.apiUrl = environmentService.apiUrl || '';
$scope.identityUrl = environmentService.identityUrl || '';
$scope.iconsUrl = environmentService.iconsUrl || '';
$scope.save = function () {
environmentService.setUrls({
base: $scope.baseUrl,
api: $scope.apiUrl,
identity: $scope.identityUrl,
webVault: $scope.webVaultUrl
webVault: $scope.webVaultUrl,
icons: $scope.iconsUrl
}, function (resUrls) {
$timeout(function () {
// re-set urls since service can change them, ex: prefixing https://
@@ -25,6 +27,7 @@
$scope.apiUrl = resUrls.api;
$scope.identityUrl = resUrls.identity;
$scope.webVaultUrl = resUrls.webVault;
$scope.iconsUrl = resUrls.icons;
$analytics.eventTrack('Set Environment URLs');
toastr.success(i18nService.environmentSaved);