mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Custom comparisons, performance improvements
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
angular.module('app').controller('ExportController', ['$scope', 'Persist', function ($scope, Persist) {
|
||||
$scope.builds = {
|
||||
builds: Persist.builds
|
||||
// TODO: add comparisons
|
||||
angular.module('app').controller('ExportController', ['$scope', '$stateParams', function ($scope, $stateParams) {
|
||||
|
||||
$scope.title = $stateParams.title || 'Export';
|
||||
|
||||
if ($stateParams.promise) {
|
||||
$scope.export = 'Generating...';
|
||||
$stateParams.promise.then(function(data){
|
||||
$scope.export = data;
|
||||
});
|
||||
} else {
|
||||
$scope.export = angular.toJson($stateParams.data, true);
|
||||
}
|
||||
|
||||
$scope.onTextClick = function ($event) {
|
||||
$event.target.select();
|
||||
};
|
||||
|
||||
}]);
|
||||
Reference in New Issue
Block a user