Rename flashMessage variable

This commit is contained in:
Yemel Jardi 2014-05-20 08:30:20 -07:00
commit ee6821d109
9 changed files with 23 additions and 23 deletions

View file

@ -47,7 +47,7 @@ angular.module('copay.transactions').controller('TransactionsController',
var w = $rootScope.wallet;
w.sendTx(ntxid, function(txid) {
console.log('[transactions.js.68:txid:] SENTTX CALLBACK',txid); //TODO
$rootScope.flashMessage = txid
$rootScope.$flashMessage = txid
? {type:'success', message: 'Transaction broadcasted. txid: ' + txid}
: {type:'error', message: 'There was an error sending the Transaction'}
;
@ -61,7 +61,7 @@ angular.module('copay.transactions').controller('TransactionsController',
var w = $rootScope.wallet;
w.sign(ntxid, function(ret){
if (!ret) {
$rootScope.flashMessage = {
$rootScope.$flashMessage = {
type:'error',
message: 'There was an error signing the Transaction',
};
@ -101,7 +101,7 @@ angular.module('copay.transactions').controller('TransactionsController',
$rootScope.txAlertCount = 0;
var w = $rootScope.wallet;
w.reject(ntxid);
$rootScope.flashMessage = {type:'warning', message: 'Transaction rejected by you'};
$rootScope.$flashMessage = {type:'warning', message: 'Transaction rejected by you'};
$scope.loading = false;
};