fix karma by @matiu

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-09 19:29:56 -03:00
commit 18034fd643
4 changed files with 41 additions and 15 deletions

View file

@ -57,7 +57,7 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
});
};
$scope.walletInfo = function(w) {
$scope.showWalletInfo = function(w) {
var ModalInstanceCtrl = function($scope, $modalInstance) {
if (!w) return;
$scope.isSafari = isMobile.Safari();
@ -66,6 +66,7 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
$scope.success = null;
$scope.deleteWallet = function() {
$scope.loading = true;
identityService.deleteWallet($scope.item, function(err) {
if (err) {

View file

@ -120,7 +120,7 @@ angular.module('copayApp.services')
};
root.deleteWallet = function(w, cb) {
$rootScope.iden.deleteWallet(w.id, cb);
$rootScope.iden.deleteWallet(w.getId(), cb);
};
root.isFocused = function(wid) {