fix error message
This commit is contained in:
parent
4aca487723
commit
73391aed32
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue