mirror of https://github.com/BTCPrivate/copay.git
Fixes link and controller signin
This commit is contained in:
parent
a4c16a94a5
commit
ee6220ea0a
|
@ -180,7 +180,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="large-12 columns text-center line-dashed">
|
<div class="large-12 columns text-center line-dashed">
|
||||||
<span ng-show="wallets.length">
|
<span ng-show="wallets.length">
|
||||||
<a ng-click="create()">Create a new wallet</a> ·
|
<a href="#/setup">Create a new wallet</a> ·
|
||||||
</span>
|
</span>
|
||||||
<a ng-href="#import">Import from file</a>
|
<a ng-href="#import">Import from file</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,20 +8,18 @@ angular.module('copay.signin').controller('SigninController',
|
||||||
$scope.openPassword = '';
|
$scope.openPassword = '';
|
||||||
|
|
||||||
$scope.create = function(form) {
|
$scope.create = function(form) {
|
||||||
if (form) {
|
if (form && form.$invalid) {
|
||||||
if (form.$invalid) {
|
$rootScope.flashMessage = { message: 'Please, enter required fields', type: 'error'};
|
||||||
$rootScope.flashMessage = { message: 'Please, enter required fields', type: 'error'};
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$rootScope.walletName = form.walletName.$modelValue;
|
|
||||||
$rootScope.walletPassword = form.createPassword.$modelValue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$rootScope.walletName = form.walletName.$modelValue;
|
||||||
|
$rootScope.walletPassword = form.createPassword.$modelValue;
|
||||||
$location.path('setup');
|
$location.path('setup');
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.open = function(form) {
|
$scope.open = function(form) {
|
||||||
if (form.$invalid) {
|
if (form && form.$invalid) {
|
||||||
$rootScope.flashMessage = { message: 'Please, enter required fields', type: 'error'};
|
$rootScope.flashMessage = { message: 'Please, enter required fields', type: 'error'};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +32,7 @@ angular.module('copay.signin').controller('SigninController',
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.join = function(form) {
|
$scope.join = function(form) {
|
||||||
if (form.$invalid) {
|
if (form && form.$invalid) {
|
||||||
$rootScope.flashMessage = { message: 'Please, enter required fields', type: 'error'};
|
$rootScope.flashMessage = { message: 'Please, enter required fields', type: 'error'};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue