This commit is contained in:
Gabriel Bazán 2016-12-05 11:36:01 -03:00
commit fc8f315671
2 changed files with 6 additions and 9 deletions

View file

@ -69,11 +69,11 @@ angular.module('copayApp.controllers').controller('glideraController',
}
};
this.getAuthenticateUrl = function() {
$scope.getAuthenticateUrl = function() {
return glideraService.getOauthCodeUrl();
};
this.submitOauthCode = function(code) {
$scope.submitOauthCode = function(code) {
ongoingProcess.set('connectingGlidera', true);
$timeout(function() {
glideraService.getToken(code, function(err, data) {
@ -92,10 +92,7 @@ angular.module('copayApp.controllers').controller('glideraController',
}, 100);
};
this.openTxModal = function(token, tx) {
var self = this;
$scope.self = self;
$scope.openTxModal = function(token, tx) {
$scope.tx = tx;
glideraService.getTransaction(token, tx.transactionUuid, function(err, tx) {

View file

@ -27,7 +27,7 @@
<p class="glidera-text">Connect your Glidera account to get started.</p>
<button class="button button-standard button-primary"
ng-click="openExternalLink(glidera.getAuthenticateUrl()); showOauthForm = true">
ng-click="openExternalLink(getAuthenticateUrl()); showOauthForm = true">
Connect to Glidera
</button>
<div class="m10t">
@ -41,7 +41,7 @@
</div>
</div>
<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">
<label class="item item-input item-stacked-label">
<span class="input-label">OAuth Code</span>
@ -94,7 +94,7 @@
Activity
</div>
<a ng-repeat="tx in txs"
ng-click="glidera.openTxModal(token, tx)"
ng-click="openTxModal(token, tx)"
class="item">
<span class="item-note">