mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 18:21:12 +03:00
AC-420 unshifted shifted columns
This commit is contained in:
parent
f8e1d2e0e3
commit
216c488ce7
@ -18,6 +18,15 @@ function JobHostSummaryList ($scope, $rootScope, $location, $log, $routeParams,
|
||||
var list = JobHostList;
|
||||
var base = $location.path().replace(/^\//,'').split('/')[0];
|
||||
var defaultUrl = GetBasePath(base) + $routeParams.id + '/job_host_summaries/';
|
||||
|
||||
// When viewing all summaries for a particular host, show job ID, otherwise row ID.
|
||||
if (base == 'hosts') {
|
||||
list.index = false;
|
||||
}
|
||||
else {
|
||||
list.index = true;
|
||||
}
|
||||
|
||||
var view = GenerateList;
|
||||
var scope = view.inject(list, { mode: 'edit' });
|
||||
scope.selected = [];
|
||||
|
@ -35,7 +35,7 @@ angular.module('InventoryHostsFormDefinition', [])
|
||||
type: 'DropDown',
|
||||
searchable: false,
|
||||
nosort: true,
|
||||
label: 'View',
|
||||
label: 'Jobs',
|
||||
"class": "btn-sm",
|
||||
//ngDisabled: 'host.last_job == null',
|
||||
options: [
|
||||
|
@ -13,7 +13,7 @@ angular.module('JobHostDefinition', [])
|
||||
name: 'jobhosts',
|
||||
iterator: 'jobhost',
|
||||
editTitle: 'Job Host Summary',
|
||||
indexShow: 'host_id == null',
|
||||
index: true,
|
||||
hover: true,
|
||||
|
||||
fields: {
|
||||
|
@ -59,6 +59,9 @@ angular.module('GeneratorHelpers', ['GeneratorHelpers'])
|
||||
case 'dataTitle':
|
||||
result = "data-title=\"" + value + "\" ";
|
||||
break;
|
||||
case 'columnShow':
|
||||
result = "ng-show=\"" + value + "\" ";
|
||||
break;
|
||||
case 'dataPlacement':
|
||||
result = "data-placement=\"" + value + "\" ";
|
||||
break;
|
||||
@ -183,6 +186,7 @@ angular.module('GeneratorHelpers', ['GeneratorHelpers'])
|
||||
html += "\" ";
|
||||
html += (field.ngClass) ? Attr(field, 'ngClass') : "";
|
||||
html += (options.mode == 'lookup' || options.mode == 'select') ? " ng-click=\"toggle_" + list.iterator +"({{ " + list.iterator + ".id }})\"" : "";
|
||||
html += (field.columnShow) ? Attr(field, 'columnShow') : "";
|
||||
html += ">\n";
|
||||
|
||||
// Add ngShow
|
||||
|
Loading…
Reference in New Issue
Block a user