show correct action for storage

This commit is contained in:
Ivan Socolsky 2014-12-05 12:20:43 -03:00
commit b8faee872e
2 changed files with 9 additions and 6 deletions

View file

@ -51,6 +51,13 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
};
$scope.selectStorage = function (storage) {
$scope.useLocalstorage = storage == 'local';
$timeout(function() {
$scope.$digest();
}, 1);
};
$scope.setStorage = function(useLocalstorage) {
console.log('[createProfile.js.53:useLocalstorage:]', useLocalstorage); //TODO
console.log('[createProfile.js.53:useLocalstorage:]', $scope.useLocalstorage); //TODO