rebased to master
This commit is contained in:
parent
c9469b6da7
commit
09439d1d41
2 changed files with 10 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('CreateController',
|
angular.module('copayApp.controllers').controller('CreateController',
|
||||||
function($scope, $rootScope, $location, $timeout, controllerUtils, backupService, notification) {
|
function($scope, $rootScope, $location, $timeout, controllerUtils, backupService, notification, defaults) {
|
||||||
|
|
||||||
$rootScope.fromSetup = true;
|
$rootScope.fromSetup = true;
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
|
|
@ -30,6 +30,14 @@ angular.module('copayApp.controllers').controller('CreateController',
|
||||||
updateRCSelect(tc);
|
updateRCSelect(tc);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$scope.$watch('networkName', function(tc) {
|
||||||
|
$scope.networkUrl = config.network[$scope.networkName].url;
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.showNetwork = function() {
|
||||||
|
return $scope.networkUrl != defaults.network.livenet.url && $scope.networkUrl != defaults.network.testnet.url;
|
||||||
|
};
|
||||||
|
|
||||||
$scope.create = function(form) {
|
$scope.create = function(form) {
|
||||||
if (form && form.$invalid) {
|
if (form && form.$invalid) {
|
||||||
notification.error('Error', 'Please enter the required fields');
|
notification.error('Error', 'Please enter the required fields');
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div ng-show="showNetwork()"><p translate class="size-12">Using network: {{networkName}} at <a href="{{networkUrl}}" target="_blank">{{networkUrl}}</a></p></div>
|
<div ng-show="showNetwork()"><p translate class="size-12">Using network: {{networkName}} at <a href="{{networkUrl}}" target="_blank">{{networkUrl}}</a></p></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue