settings: show wallet network on sidebar

This commit is contained in:
Manuel Araoz 2014-09-10 11:47:41 -07:00
commit 4cfe87490f
4 changed files with 5 additions and 7 deletions

View file

@ -37,7 +37,6 @@ angular.module('copayApp.controllers').controller('OpenController', function($sc
try {
w = walletFactory.open($scope.selectedWalletId, passphrase);
} catch (e) {
throw e;
errMsg = e.message;
};
if (!w) {

View file

@ -3,9 +3,11 @@
angular.module('copayApp.controllers').controller('VersionController',
function($scope, $rootScope, $http, notification) {
var w = $rootScope.wallet;
$scope.version = copay.version;
$scope.commitHash = copay.commitHash;
$scope.networkName = config.networkName;
$scope.networkName = w ? w.getNetworkName() : '';
$scope.defaultLanguage = config.defaultLanguage;
if (_.isUndefined($rootScope.checkVersion))
$rootScope.checkVersion = true;
@ -30,4 +32,4 @@ angular.module('copayApp.controllers').controller('VersionController',
});
}
});
});