Custom comparisons, performance improvements

This commit is contained in:
Colin McLeod
2015-05-20 00:29:24 -07:00
parent 02fe76f43b
commit 6c1e3a7410
146 changed files with 1096 additions and 1062 deletions

View File

@@ -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();
};
}]);