Remove shell dependences. Remove unnecessary plugins. Remove unnecessary directives

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-22 15:51:58 -03:00
commit e7d8421c4d
11 changed files with 1 additions and 190 deletions

View file

@ -29,10 +29,6 @@ angular.module('copayApp.controllers').controller('HistoryController',
$scope.downloadHistory = function() {
if (window.cordova) {
log.info('Not available on mobile');
return;
}
var w = $rootScope.wallet;
if (!w) return;

View file

@ -18,14 +18,6 @@ angular.module('copayApp.controllers').controller('ImportController',
$scope.$digest();
}
$scope.openFileDialog = function() {
if (window.cshell) {
return cshell.send('backup:import');
}
$scope.choosefile = !$scope.choosefile;
};
$scope._doImport = function(encryptedObj, password) {
updateStatus('Importing wallet - Procesing backup...');

View file

@ -46,13 +46,6 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
});
};
$scope.openFileDialog = function() {
if (window.cshell) {
return cshell.send('backup:import');
}
$scope.choosefile = !$scope.choosefile;
};
$scope.getFile = function() {
// If we use onloadend, we need to check the readyState.
reader.onloadend = function(evt) {

View file

@ -25,12 +25,6 @@ angular.module('copayApp.controllers').controller('ReceiveController',
$scope.openAddressModal = function(address) {
var ModalInstanceCtrl = function($scope, $modalInstance, address) {
$scope.address = address;
$scope.isMobile = !!window.cordova;
$scope.mobileCopy = function(address) {
window.cordova.plugins.clipboard.copy(address);
window.plugins.toast.showShortBottom('Copied to clipboard');
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');