mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Dashboard
Fixed missing search dialog on jobs list.
This commit is contained in:
parent
87a74f058f
commit
5d1b5624e3
@ -100,7 +100,6 @@ function JobsListController ($scope, $compile, $routeParams, ClearScope, Breadcr
|
||||
$scope.removeListLoaded = $scope.$on('listLoaded', function() {
|
||||
listCount++;
|
||||
if (listCount === expecting) {
|
||||
//console.log('checking for more events...');
|
||||
$scope.$emit('ProcessQueue');
|
||||
}
|
||||
});
|
||||
@ -109,11 +108,6 @@ function JobsListController ($scope, $compile, $routeParams, ClearScope, Breadcr
|
||||
|
||||
LoadBreadCrumbs();
|
||||
|
||||
// Add breadcrumbs
|
||||
//e = angular.element(document.getElementById('breadcrumbs'));
|
||||
//e.html(Breadcrumbs({ list: { editTitle: 'Jobs' } , mode: 'edit' }));
|
||||
//$compile(e)($scope);
|
||||
|
||||
if ($scope.removeListLoaded) {
|
||||
$scope.removeListLoaded();
|
||||
}
|
||||
|
||||
@ -84,7 +84,6 @@ angular.module('JobsHelper', ['Utilities', 'RestServices', 'FormGenerator', 'Job
|
||||
list = scope.jobs;
|
||||
}
|
||||
job = Find({ list: list, key: 'id', val: id });
|
||||
console.log('job type: ' + job.type);
|
||||
if (job.type === 'job') {
|
||||
$location.url('/jobs/' + job.id);
|
||||
}
|
||||
|
||||
@ -30,7 +30,14 @@ angular.module('DashboardJobsWidget', ['RestServices', 'Utilities'])
|
||||
html += "href=\"#scheduled-jobs-tab\" data-toggle=\"tab\">Schedule</a></li>\n";
|
||||
html += "</ul>\n";
|
||||
html += "<div class=\"tab-content\">\n";
|
||||
html += "<div class=\"tab-pane active\" id=\"active-jobs-tab\"></div>\n";
|
||||
html += "<div class=\"tab-pane active\" id=\"active-jobs-tab\">\n";
|
||||
html += "<div class=\"row search-row\">\n";
|
||||
html += "<div class=\"col-md-4\" id=\"active-jobs-search-container\"></div>\n";
|
||||
html += "</div>\n"; //row
|
||||
html += "<div class=\"job-list\" id=\"active-jobs-container\">\n";
|
||||
html += "<div id=\"active-jobs\" class=\"job-list-target\"></div>\n";
|
||||
html += "</div>\n"; //list
|
||||
html += "</div>\n"; //active-jobs-tab
|
||||
html += "<div class=\"tab-pane\" id=\"scheduled-jobs-tab\"></div>\n";
|
||||
html += "</div>\n";
|
||||
|
||||
@ -61,7 +68,7 @@ angular.module('DashboardJobsWidget', ['RestServices', 'Utilities'])
|
||||
parent_scope: scope,
|
||||
scope: jobs_scope,
|
||||
list: JobsList,
|
||||
id: 'active-jobs-tab',
|
||||
id: 'active-jobs',
|
||||
url: GetBasePath('unified_jobs') + '?status__in=running,completed,failed,successful,error,canceled',
|
||||
pageSize: max_rows
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user