feature(superuser panel): ability to view logs
users would like the ability to view build logs in the superuser panel [None]
This commit is contained in:
parent
d8e08fd5df
commit
dae93dce78
10 changed files with 224 additions and 27 deletions
31
static/js/directives/ui/super-user-build-logs.js
Normal file
31
static/js/directives/ui/super-user-build-logs.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* An element for managing global messages.
|
||||
*/
|
||||
angular.module('quay').directive('superUserBuildLogs', function () {
|
||||
var directiveDefinitionObject = {
|
||||
priority: 0,
|
||||
templateUrl: '/static/directives/super-user-build-logs.html',
|
||||
replace: false,
|
||||
transclude: true,
|
||||
restrict: 'C',
|
||||
scope: {
|
||||
'isEnabled': '=isEnabled'
|
||||
},
|
||||
controller: function ($scope, $element, ApiService) {
|
||||
$scope.buildParams = {};
|
||||
$scope.showLogTimestamps = true;
|
||||
$scope.loadBuild = function () {
|
||||
var params = {
|
||||
'build_uuid': $scope.buildParams.buildUuid
|
||||
};
|
||||
ApiService.getRepoBuildSuperUserAsResource(params).get(function (build) {
|
||||
$scope.build = build;
|
||||
});
|
||||
};
|
||||
$scope.setUpdatedBuild = function (build) {
|
||||
$scope.build = build;
|
||||
};
|
||||
}
|
||||
};
|
||||
return directiveDefinitionObject;
|
||||
});
|
Reference in a new issue