fixes
This commit is contained in:
parent
2d6dad6557
commit
fc8f315671
2 changed files with 6 additions and 9 deletions
|
|
@ -69,11 +69,11 @@ angular.module('copayApp.controllers').controller('glideraController',
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getAuthenticateUrl = function() {
|
$scope.getAuthenticateUrl = function() {
|
||||||
return glideraService.getOauthCodeUrl();
|
return glideraService.getOauthCodeUrl();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.submitOauthCode = function(code) {
|
$scope.submitOauthCode = function(code) {
|
||||||
ongoingProcess.set('connectingGlidera', true);
|
ongoingProcess.set('connectingGlidera', true);
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
glideraService.getToken(code, function(err, data) {
|
glideraService.getToken(code, function(err, data) {
|
||||||
|
|
@ -92,10 +92,7 @@ angular.module('copayApp.controllers').controller('glideraController',
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.openTxModal = function(token, tx) {
|
$scope.openTxModal = function(token, tx) {
|
||||||
var self = this;
|
|
||||||
|
|
||||||
$scope.self = self;
|
|
||||||
$scope.tx = tx;
|
$scope.tx = tx;
|
||||||
|
|
||||||
glideraService.getTransaction(token, tx.transactionUuid, function(err, tx) {
|
glideraService.getTransaction(token, tx.transactionUuid, function(err, tx) {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
<p class="glidera-text">Connect your Glidera account to get started.</p>
|
<p class="glidera-text">Connect your Glidera account to get started.</p>
|
||||||
|
|
||||||
<button class="button button-standard button-primary"
|
<button class="button button-standard button-primary"
|
||||||
ng-click="openExternalLink(glidera.getAuthenticateUrl()); showOauthForm = true">
|
ng-click="openExternalLink(getAuthenticateUrl()); showOauthForm = true">
|
||||||
Connect to Glidera
|
Connect to Glidera
|
||||||
</button>
|
</button>
|
||||||
<div class="m10t">
|
<div class="m10t">
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div ng-show="showOauthForm">
|
<div ng-show="showOauthForm">
|
||||||
<form class="settings" name="oauthCodeForm" ng-submit="glidera.submitOauthCode(code)" novalidate>
|
<form class="settings" name="oauthCodeForm" ng-submit="submitOauthCode(code)" novalidate>
|
||||||
<div class="list settings-input-group">
|
<div class="list settings-input-group">
|
||||||
<label class="item item-input item-stacked-label">
|
<label class="item item-input item-stacked-label">
|
||||||
<span class="input-label">OAuth Code</span>
|
<span class="input-label">OAuth Code</span>
|
||||||
|
|
@ -94,7 +94,7 @@
|
||||||
Activity
|
Activity
|
||||||
</div>
|
</div>
|
||||||
<a ng-repeat="tx in txs"
|
<a ng-repeat="tx in txs"
|
||||||
ng-click="glidera.openTxModal(token, tx)"
|
ng-click="openTxModal(token, tx)"
|
||||||
class="item">
|
class="item">
|
||||||
|
|
||||||
<span class="item-note">
|
<span class="item-note">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue