Remove shell dependences. Remove unnecessary plugins. Remove unnecessary directives
This commit is contained in:
parent
a1159189ba
commit
e7d8421c4d
11 changed files with 1 additions and 190 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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...');
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue