Attempts to save file in golang to no avail

This commit is contained in:
Scott
2016-08-08 15:49:35 +10:00
parent e85876e273
commit 9bfffe1a37
4 changed files with 58 additions and 4 deletions

View File

@@ -62,6 +62,12 @@ $scope.saveAllSettings = function() {
}).
success(function (data) {
Notification.success('Saved settings');
for(var i=0; i<data.Exchanges.length;i++) {
data.Exchanges[i].AvailablePairsSplit = data.Exchanges[i].AvailablePairs.split(",");
data.Exchanges[i].EnabledPairsSplit = data.Exchanges[i].EnabledPairs.split(",");
}
$scope.config = data;
Notification.info('Settings loaded');
}).
error(function (data) {
Notification.error('Save failed');