mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 12:40:06 -03:30
Jobs page cosmetic fixes. Fixed pagination/search issue causing current page # to be incorrect.
This commit is contained in:
@@ -78,6 +78,7 @@ angular.module('SearchHelper', ['RestServices', 'Utilities', 'RefreshHelper'])
|
||||
scope[iterator + 'SearchParams'] = '';
|
||||
scope[iterator + 'SearchParams'] += (default_order) ? '?order_by=' + escape(default_order) : '';
|
||||
}
|
||||
scope[iterator + 'Page'] = 0;
|
||||
url += scope[iterator + 'SearchParams'];
|
||||
url += (scope[iterator + 'PageSize']) ? '&page_size=' + scope[iterator + 'PageSize'] : "";
|
||||
Refresh({ scope: scope, set: set, iterator: iterator, url: url });
|
||||
|
||||
@@ -46,14 +46,14 @@ angular.module('JobsListDefinition', [])
|
||||
ngClick: "editJob(\{\{ job.id \}\})",
|
||||
icon: 'icon-edit',
|
||||
class: 'btn-mini',
|
||||
awToolTip: 'Edit job',
|
||||
awToolTip: 'Edit/View detail',
|
||||
},
|
||||
summary: {
|
||||
title: 'Summary',
|
||||
icon: 'icon-filter',
|
||||
ngClick: 'viewSummary()',
|
||||
class: 'btn-success btn-mini',
|
||||
awToolTip: 'Job summary',
|
||||
class: 'btn-info btn-mini',
|
||||
awToolTip: 'View host summary',
|
||||
ngDisabled: "job.status == 'new'"
|
||||
},
|
||||
events: {
|
||||
@@ -62,7 +62,7 @@ angular.module('JobsListDefinition', [])
|
||||
mode: 'all',
|
||||
ngClick: 'viewEvents()',
|
||||
class: 'btn-info btn-mini',
|
||||
awToolTip: 'Job event detail',
|
||||
awToolTip: 'View events',
|
||||
ngDisabled: "job.status == 'new'"
|
||||
},
|
||||
cancel: {
|
||||
|
||||
Reference in New Issue
Block a user