Improve readability of backup configs JSON
This commit is contained in:
@@ -1934,7 +1934,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
});
|
||||
|
||||
var filename = 'app-backup-config-' + (new Date()).toISOString().replace(/:|T/g,'-').replace(/\..*/,'') + ' (' + $scope.app.fqdn + ')' + '.json';
|
||||
download(filename, JSON.stringify(tmp));
|
||||
download(filename, JSON.stringify(tmp, null, 4));
|
||||
};
|
||||
|
||||
document.getElementById('backupConfigFileInput').onchange = function (event) {
|
||||
|
||||
Reference in New Issue
Block a user