Addressbook as a view (not modal)

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-12 11:57:20 -03:00
commit 32d99e3e36
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
14 changed files with 330 additions and 237 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $ionicModal, $log, $timeout, addressbookService, profileService, lodash, $state, walletService, incomingData) {
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $log, $timeout, addressbookService, profileService, lodash, $state, walletService, incomingData ) {
var originalList;
@ -81,15 +81,6 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
});
};
$scope.openAddressbookModal = function() {
$ionicModal.fromTemplateUrl('views/modals/addressbook.html', {
scope: $scope
}).then(function(modal) {
$scope.addressbookModal = modal;
$scope.addressbookModal.show();
});
};
$scope.$on('modal.hidden', function() {
$scope.init();
});