Wallet/src/js/controllers/tab-settings.js
Jamal Jackson 5559ce9b3f Updated icons and links (#255)
* added appropriate wallet design

* added new links to settings tab, and associated svg images

* added space below last link in settings list

* hiding links with views not ready

* added help and support link

* updated settings view

* removed empty param
2016-10-07 11:35:43 -04:00

35 lines
1.1 KiB
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('tabSettingsController', function($scope, $window, uxLanguage, platformInfo, profileService, feeService, configService, externalLinkService) {
var updateConfig = function() {
var config = configService.getSync();
var isCordova = platformInfo.isCordova;
var isWP = platformInfo.isWP;
$scope.usePushNotifications = isCordova && !isWP;
$scope.appName = $window.appConfig.nameCase;
$scope.unitName = config.wallet.settings.unitName;
$scope.currentLanguageName = uxLanguage.getCurrentLanguageName();
$scope.selectedAlternative = {
name: config.wallet.settings.alternativeName,
isoCode: config.wallet.settings.alternativeIsoCode
};
$scope.feeOpts = feeService.feeOpts;
$scope.currentFeeLevel = feeService.getCurrentFeeLevel();
$scope.wallets = profileService.getWallets();
};
$scope.openExternalLink = function(url, target) {
externalLinkService.open(url, target);
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {
updateConfig();
});
});