mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #229 from JDonadio/fix/error-message
Fix error message
This commit is contained in:
commit
910e4a2f0a
|
@ -7,14 +7,15 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
|||
|
||||
// An alert dialog
|
||||
var showAlert = function(title, msg, cb) {
|
||||
$log.warn(title + ": " + msg);
|
||||
var message = msg.message ? msg.message : msg;
|
||||
$log.warn(title + ": " + message);
|
||||
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: title,
|
||||
template: msg
|
||||
template: message
|
||||
});
|
||||
|
||||
if (!cb) cb = function() {};
|
||||
|
||||
alertPopup.then(cb);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue