Adds btc values. Adds disclosure. Fix modals. Removes sandbox
This commit is contained in:
parent
b817a14a65
commit
20bb8680be
6 changed files with 30 additions and 24 deletions
|
|
@ -58,11 +58,21 @@
|
||||||
<div class="text-center m20v">
|
<div class="text-center m20v">
|
||||||
<img src="img/glidera-logo.png" ng-click="index.updateGlidera(index.glideraToken, index.glideraPermissions)" width="200">
|
<img src="img/glidera-logo.png" ng-click="index.updateGlidera(index.glideraToken, index.glideraPermissions)" width="200">
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center small-10 small-centered columns" ng-show="!showOauthForm">
|
<div class="text-center small-10 small-centered columns" ng-show="!showOauthForm">
|
||||||
<p class="m10b">You can buy and sell Bitcoin with a US bank account directly in Copay.</p>
|
<p class="m10b">You can buy and sell Bitcoin with a US bank account directly in Copay.</p>
|
||||||
<p class="text-gray size-12">Connect your Glidera account to get started</p>
|
|
||||||
|
|
||||||
<a class="button m20t light-gray outline round small"
|
<p class="m20t text-gray size-12 text-left">
|
||||||
|
DISCLOSURE.<br>
|
||||||
|
Glidera Inc. (Glidera) is providing the service of buying or selling bitcoins to Copay users. To enable this
|
||||||
|
service, Glidera has registered with US Treasury Department’s FinCEN as a Money Service Business
|
||||||
|
(#31000042625755). Users of Copay must agree to the service agreement presented by Glidera prior to obtaining
|
||||||
|
Glidera’s service of buying or selling bitcoins. Service available in U.S. only; (buy & sell) CA, GA, IL, KS,
|
||||||
|
MA, MD, MO, MT, MN, SC, TX; (buy only) AZ, CO, DE, ME, NJ, PA, TN, UT.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="m20t text-gray size-12">Connect your Glidera account to get started</p>
|
||||||
|
|
||||||
|
<a class="button light-gray outline round small"
|
||||||
ng-click="$root.openExternalLink(glidera.getAuthenticateUrl(), '_system'); showOauthForm = true">
|
ng-click="$root.openExternalLink(glidera.getAuthenticateUrl(), '_system'); showOauthForm = true">
|
||||||
Connect to Glidera
|
Connect to Glidera
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -175,6 +185,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="large-4 medium-4 small-4 columns">
|
<div class="large-4 medium-4 small-4 columns">
|
||||||
|
<div class="size-14">
|
||||||
|
<span ng-show="tx.type == 'BUY'">Bought</span>
|
||||||
|
<span ng-show="tx.type == 'SELL'">Sold</span>
|
||||||
|
<b>{{tx.qty}}</b> BTC
|
||||||
|
</div>
|
||||||
<span class="size-14 text-bold">
|
<span class="size-14 text-bold">
|
||||||
{{tx.subtotal|currency:'':2}} {{tx.currency}}
|
{{tx.subtotal|currency:'':2}} {{tx.currency}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
<div translate>Create, join or import</div>
|
<div translate>Create, join or import</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<!-- // DISABLED
|
|
||||||
<li ng-show="index.glideraEnabled">
|
<li ng-show="index.glideraEnabled">
|
||||||
<a ng-click="$root.go('glidera')" class="oh">
|
<a ng-click="$root.go('glidera')" class="oh">
|
||||||
<i class="icon-arrow-right3 size-18 right m10t"></i>
|
<i class="icon-arrow-right3 size-18 right m10t"></i>
|
||||||
|
|
@ -37,6 +36,5 @@
|
||||||
<div>Glidera</div>
|
<div>Glidera</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
-->
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
<span ng-show="tx.type == 'BUY'">Bought</span>
|
<span ng-show="tx.type == 'BUY'">Bought</span>
|
||||||
<span ng-show="tx.type == 'SELL'">Sold</span>
|
<span ng-show="tx.type == 'SELL'">Sold</span>
|
||||||
|
<b>{{tx.qty}}</b> BTC
|
||||||
<div class="size-36 m20b">
|
<div class="size-36 m20b">
|
||||||
{{tx.subtotal|currency:'':2}} {{tx.currency}}
|
{{tx.subtotal|currency:'':2}} {{tx.currency}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -105,11 +105,11 @@
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- // DISABLED
|
|
||||||
<li class="line-b p20" ng-show="!index.noFocusedWallet">
|
<li class="line-b p20" ng-show="!index.noFocusedWallet">
|
||||||
<span>Enable Glidera Service</span>
|
<span>Enable Glidera Service</span>
|
||||||
<switch id="glidera-enabled" name="glideraEnabled" ng-model="glideraEnabled" class="green right"></switch>
|
<switch id="glidera-enabled" name="glideraEnabled" ng-model="glideraEnabled" class="green right"></switch>
|
||||||
</li>
|
</li>
|
||||||
|
<!-- Disabled for testnet
|
||||||
<li class="line-b p20" ng-show="!index.noFocusedWallet && glideraEnabled">
|
<li class="line-b p20" ng-show="!index.noFocusedWallet && glideraEnabled">
|
||||||
<span>Glidera Sandbox</span>
|
<span>Glidera Sandbox</span>
|
||||||
<switch id="glidera-testnet" name="glideraTestnet" ng-model="glideraTestnet" class="green right"></switch>
|
<switch id="glidera-testnet" name="glideraTestnet" ng-model="glideraTestnet" class="green right"></switch>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('glideraController',
|
angular.module('copayApp.controllers').controller('glideraController',
|
||||||
function($scope, $timeout, $modal, profileService, configService, storageService, glideraService, isChromeApp) {
|
function($scope, $timeout, $modal, profileService, configService, storageService, glideraService, isChromeApp, animationService) {
|
||||||
|
|
||||||
var config = configService.getSync().wallet.settings;
|
|
||||||
|
|
||||||
this.getAuthenticateUrl = function() {
|
this.getAuthenticateUrl = function() {
|
||||||
return glideraService.getOauthCodeUrl();
|
return glideraService.getOauthCodeUrl();
|
||||||
|
|
@ -35,16 +33,9 @@ angular.module('copayApp.controllers').controller('glideraController',
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
// DISABLE ANIMATION ON CHROMEAPP
|
|
||||||
if (isChromeApp) {
|
|
||||||
var animatedSlideRight = 'full';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
var animatedSlideRight = 'full animated slideInRight';
|
|
||||||
}
|
|
||||||
|
|
||||||
this.openTxModal = function(token, tx) {
|
this.openTxModal = function(token, tx) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
var config = configService.getSync().wallet.settings;
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
||||||
$scope.tx = tx;
|
$scope.tx = tx;
|
||||||
|
|
@ -63,13 +54,13 @@ angular.module('copayApp.controllers').controller('glideraController',
|
||||||
|
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'views/modals/glidera-tx-details.html',
|
templateUrl: 'views/modals/glidera-tx-details.html',
|
||||||
windowClass: animatedSlideRight,
|
windowClass: animationService.modalAnimated.slideRight,
|
||||||
controller: ModalInstanceCtrl,
|
controller: ModalInstanceCtrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
modalInstance.result.finally(function() {
|
modalInstance.result.finally(function() {
|
||||||
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
||||||
m.addClass('slideOutRight');
|
m.addClass(animationService.modalAnimated.slideOutRight);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.updateColor();
|
self.updateColor();
|
||||||
self.updateAlias();
|
self.updateAlias();
|
||||||
|
|
||||||
// DISABLED
|
self.initGlidera();
|
||||||
//self.initGlidera();
|
|
||||||
|
|
||||||
if (fc.isPrivKeyExternal()) {
|
if (fc.isPrivKeyExternal()) {
|
||||||
self.needsBackup = false;
|
self.needsBackup = false;
|
||||||
|
|
@ -840,8 +839,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
|
|
||||||
self.initGlidera = function(accessToken) {
|
self.initGlidera = function(accessToken) {
|
||||||
self.glideraEnabled = configService.getSync().glidera.enabled;
|
self.glideraEnabled = configService.getSync().glidera.enabled;
|
||||||
self.glideraTestnet = configService.getSync().glidera.testnet;
|
// self.glideraTestnet = configService.getSync().glidera.testnet;
|
||||||
var network = self.glideraTestnet ? 'testnet' : 'livenet';
|
// var network = self.glideraTestnet ? 'testnet' : 'livenet';
|
||||||
|
// Disabled for testnet
|
||||||
|
var network = 'livenet';
|
||||||
|
|
||||||
self.glideraToken = null;
|
self.glideraToken = null;
|
||||||
self.glideraError = null;
|
self.glideraError = null;
|
||||||
|
|
@ -1164,4 +1165,4 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.setFocusedWallet();
|
self.setFocusedWallet();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue