reorganized method definitions
This commit is contained in:
parent
ad1eee6c9c
commit
dcab904f50
1 changed files with 12 additions and 13 deletions
|
|
@ -54,19 +54,6 @@ angular.module('copayApp.controllers').controller('MoreController',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.save = function() {
|
|
||||||
w.changeSettings({
|
|
||||||
unitName: $scope.selectedUnit.shortName,
|
|
||||||
unitToSatoshi: $scope.selectedUnit.value,
|
|
||||||
unitDecimals: $scope.selectedUnit.decimals,
|
|
||||||
alternativeName: $scope.selectedAlternative.name,
|
|
||||||
alternativeIsoCode: $scope.selectedAlternative.isoCode,
|
|
||||||
});
|
|
||||||
notification.success('Success', $filter('translate')('settings successfully updated'));
|
|
||||||
controllerUtils.updateBalance();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
$scope.hideAdv = true;
|
$scope.hideAdv = true;
|
||||||
$scope.hidePriv = true;
|
$scope.hidePriv = true;
|
||||||
$scope.hideSecret = true;
|
$scope.hideSecret = true;
|
||||||
|
|
@ -79,6 +66,18 @@ angular.module('copayApp.controllers').controller('MoreController',
|
||||||
$scope.$digest();
|
$scope.$digest();
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
||||||
|
$scope.save = function() {
|
||||||
|
w.changeSettings({
|
||||||
|
unitName: $scope.selectedUnit.shortName,
|
||||||
|
unitToSatoshi: $scope.selectedUnit.value,
|
||||||
|
unitDecimals: $scope.selectedUnit.decimals,
|
||||||
|
alternativeName: $scope.selectedAlternative.name,
|
||||||
|
alternativeIsoCode: $scope.selectedAlternative.isoCode,
|
||||||
|
});
|
||||||
|
notification.success('Success', $filter('translate')('settings successfully updated'));
|
||||||
|
controllerUtils.updateBalance();
|
||||||
|
};
|
||||||
|
|
||||||
$scope.downloadBackup = function() {
|
$scope.downloadBackup = function() {
|
||||||
backupService.walletDownload(w);
|
backupService.walletDownload(w);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue