mirror of https://github.com/BTCPrivate/copay.git
Fixes: url handler
This commit is contained in:
parent
3ab1510051
commit
ee031849b2
|
@ -1123,4 +1123,10 @@ a.text-white:hover {color: #ccc;}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wide-page {
|
||||||
|
background-color: #2C3E50;
|
||||||
|
margin: 10% 0;
|
||||||
|
padding: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------*/
|
/*-----------------------------------------------------------------*/
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('HomeController',
|
angular.module('copayApp.controllers').controller('HomeController',
|
||||||
function($scope, $rootScope, walletFactory, notification) {
|
function($scope, $rootScope, $location, walletFactory, notification) {
|
||||||
|
if ($rootScope.wallet) {
|
||||||
|
$location.path('/addresses');
|
||||||
|
}
|
||||||
|
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
if ($rootScope.pendingPayment) {
|
if ($rootScope.pendingPayment) {
|
||||||
notification.info('Login Required', 'Please open wallet to complete payment');
|
notification.info('Login Required', 'Please open wallet to complete payment');
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('ImportController',
|
angular.module('copayApp.controllers').controller('ImportController',
|
||||||
function($scope, $rootScope, walletFactory, controllerUtils, Passphrase, notification) {
|
function($scope, $rootScope, $location, walletFactory, controllerUtils, Passphrase, notification) {
|
||||||
|
if ($rootScope.wallet) {
|
||||||
|
$location.path('/addresses');
|
||||||
|
}
|
||||||
|
|
||||||
$scope.title = 'Import a backup';
|
$scope.title = 'Import a backup';
|
||||||
$scope.importStatus = 'Importing wallet - Reading backup...';
|
$scope.importStatus = 'Importing wallet - Reading backup...';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('JoinController',
|
angular.module('copayApp.controllers').controller('JoinController',
|
||||||
function($scope, $rootScope, $timeout, walletFactory, controllerUtils, Passphrase, notification) {
|
function($scope, $rootScope, $timeout, $location, walletFactory, controllerUtils, Passphrase, notification) {
|
||||||
|
if ($rootScope.wallet) {
|
||||||
|
$location.path('/addresses');
|
||||||
|
}
|
||||||
|
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
|
|
||||||
// QR code Scanner
|
// QR code Scanner
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('OpenController',
|
angular.module('copayApp.controllers').controller('OpenController',
|
||||||
function($scope, $rootScope, walletFactory, controllerUtils, Passphrase, notification) {
|
function($scope, $rootScope, $location, walletFactory, controllerUtils, Passphrase, notification) {
|
||||||
|
if ($rootScope.wallet) {
|
||||||
|
$location.path('/addresses');
|
||||||
|
}
|
||||||
|
|
||||||
var cmp = function(o1, o2) {
|
var cmp = function(o1, o2) {
|
||||||
var v1 = o1.show.toLowerCase(),
|
var v1 = o1.show.toLowerCase(),
|
||||||
v2 = o2.show.toLowerCase();
|
v2 = o2.show.toLowerCase();
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('SettingsController',
|
angular.module('copayApp.controllers').controller('SettingsController',
|
||||||
function($scope, $rootScope, $window, $location) {
|
function($scope, $rootScope, $window, $location) {
|
||||||
|
if ($rootScope.wallet) {
|
||||||
|
$location.path('/addresses');
|
||||||
|
}
|
||||||
|
|
||||||
$scope.title = 'Settings';
|
$scope.title = 'Settings';
|
||||||
$scope.networkName = config.networkName;
|
$scope.networkName = config.networkName;
|
||||||
$scope.insightHost = config.blockchain.host;
|
$scope.insightHost = config.blockchain.host;
|
||||||
|
|
|
@ -34,6 +34,9 @@ var valid_pairs = {
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('SetupController',
|
angular.module('copayApp.controllers').controller('SetupController',
|
||||||
function($scope, $rootScope, $location, $timeout, walletFactory, controllerUtils, Passphrase, backupService, notification) {
|
function($scope, $rootScope, $location, $timeout, walletFactory, controllerUtils, Passphrase, backupService, notification) {
|
||||||
|
if ($rootScope.wallet) {
|
||||||
|
$location.path('/addresses');
|
||||||
|
}
|
||||||
|
|
||||||
$rootScope.videoInfo = {};
|
$rootScope.videoInfo = {};
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<div class="text-center logo-setup">
|
<div class="wide-page">
|
||||||
<img src="img/logo-negative-beta.svg" alt="Copay">
|
<div class="text-center">
|
||||||
|
<img src="img/logo-negative-beta.svg" alt="Copay">
|
||||||
|
</div>
|
||||||
|
<h1 class="text-center text-white">404</h1>
|
||||||
|
<h3 class="text-center text-white">Page not found</h3>
|
||||||
|
<p class="text-center"><a href="#!/">go back...</a></p>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="text-center text-white">404</h1>
|
|
||||||
<h3 class="text-center">Page not found</h3>
|
|
||||||
<p class="text-center"><a href="#!/">go back...</a></p>
|
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
<div class="text-center logo-setup">
|
<div class="wide-page">
|
||||||
<img src="img/logo-negative-beta.svg" alt="Copay">
|
<div class="text-center">
|
||||||
</div>
|
<img src="img/logo-negative-beta.svg" alt="Copay">
|
||||||
<h1 class="text-center text-white">Browser unsupported</h1>
|
</div>
|
||||||
<h3 class="text-center">
|
<h1 class="text-center text-white">Browser unsupported</h1>
|
||||||
Copay uses webRTC for peer-to-peer communications,
|
<h3 class="text-center text-white">
|
||||||
but your browser does not support it.
|
Copay uses webRTC for peer-to-peer communications,
|
||||||
Please use
|
but your browser does not support it.
|
||||||
a current version of Google Chrome, Mozilla Firefox, or Opera.
|
Please use
|
||||||
<br><br>
|
a current version of Google Chrome, Mozilla Firefox, or Opera.
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
For more information
|
||||||
|
on supported browsers please check <a href="http://www.webrtc.org/">http://www.webrtc.org/</a>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
For more information
|
|
||||||
on supported browsers please check <a href="http://www.webrtc.org/">http://www.webrtc.org/</a>
|
|
||||||
</h3>
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<h3 class="text-center">
|
<h3 class="text-center text-white">
|
||||||
Preparing payment...
|
Preparing payment...
|
||||||
</h3>
|
</h3>
|
||||||
<div data-ng-init="" data-ng-controller="UriPaymentController">
|
<div data-ng-init="" data-ng-controller="UriPaymentController">
|
||||||
|
|
Loading…
Reference in New Issue