mirror of https://github.com/BTCPrivate/copay.git
commit
744b03a0f7
|
@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('activityController',
|
||||||
$scope.openTxpModal = txpModalService.open;
|
$scope.openTxpModal = txpModalService.open;
|
||||||
$scope.fetchingNotifications = true;
|
$scope.fetchingNotifications = true;
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data){
|
$scope.$on("$ionicView.enter", function(event, data) {
|
||||||
profileService.getNotifications(50, function(err, n) {
|
profileService.getNotifications(50, function(err, n) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$log.error(err);
|
$log.error(err);
|
||||||
|
@ -74,7 +74,7 @@ angular.module('copayApp.controllers').controller('activityController',
|
||||||
});
|
});
|
||||||
|
|
||||||
walletService.getTxNote(wallet, n.txid, function(err, note) {
|
walletService.getTxNote(wallet, n.txid, function(err, note) {
|
||||||
if (err) $log.debug('Could not fetch transaction note');
|
if (err) $log.warn('Could not fetch transaction note: ' + err);
|
||||||
$scope.btx.note = note;
|
$scope.btx.note = note;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,7 +29,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
||||||
function updateMemo() {
|
function updateMemo() {
|
||||||
walletService.getTxNote(wallet, $scope.btx.txid, function(err, note) {
|
walletService.getTxNote(wallet, $scope.btx.txid, function(err, note) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$log.warn('Could not fetch transaction note ' + err);
|
$log.warn('Could not fetch transaction note: ' + err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
});
|
});
|
||||||
|
|
||||||
walletService.getTxNote(wallet, n.txid, function(err, note) {
|
walletService.getTxNote(wallet, n.txid, function(err, note) {
|
||||||
if (err) $log.debug(gettextCatalog.getString('Could not fetch transaction note'));
|
if (err) $log.warn('Could not fetch transaction note: ' + err);
|
||||||
$scope.btx.note = note;
|
$scope.btx.note = note;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -77,7 +77,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
||||||
|
|
||||||
this.showAlert = function(title, msg, cb, buttonName) {
|
this.showAlert = function(title, msg, cb, buttonName) {
|
||||||
var message = (msg && msg.message) ? msg.message : msg;
|
var message = (msg && msg.message) ? msg.message : msg;
|
||||||
$log.warn(title + ": " + message);
|
$log.warn(title ? (title + ': ' + message) : message);
|
||||||
|
|
||||||
if (isCordova)
|
if (isCordova)
|
||||||
_cordovaAlert(title, message, cb, buttonName);
|
_cordovaAlert(title, message, cb, buttonName);
|
||||||
|
@ -97,7 +97,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
||||||
*/
|
*/
|
||||||
|
|
||||||
this.showConfirm = function(title, message, okText, cancelText, cb) {
|
this.showConfirm = function(title, message, okText, cancelText, cb) {
|
||||||
$log.warn(title + ": " + message);
|
$log.warn(title ? (title + ': ' + message) : message);
|
||||||
|
|
||||||
if (isCordova)
|
if (isCordova)
|
||||||
_cordovaConfirm(title, message, okText, cancelText, cb);
|
_cordovaConfirm(title, message, okText, cancelText, cb);
|
||||||
|
@ -116,7 +116,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
||||||
*/
|
*/
|
||||||
|
|
||||||
this.showPrompt = function(title, message, opts, cb) {
|
this.showPrompt = function(title, message, opts, cb) {
|
||||||
$log.warn(title + ": " + message);
|
$log.warn(title ? (title + ': ' + message) : message);
|
||||||
|
|
||||||
if (isCordova && !opts.forceHTMLPrompt)
|
if (isCordova && !opts.forceHTMLPrompt)
|
||||||
_cordovaPrompt(title, message, opts, cb);
|
_cordovaPrompt(title, message, opts, cb);
|
||||||
|
|
Loading…
Reference in New Issue