mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Only show groups with a dynamic inventory source in the workflow editor
This commit is contained in:
parent
d071b64f12
commit
5344c66f45
@ -18,9 +18,13 @@ export default
|
||||
|
||||
fields: {
|
||||
name: {
|
||||
key: true,
|
||||
label: 'Name',
|
||||
columnClass: 'col-md-11'
|
||||
ngBind: 'inventory_source.summary_fields.group.name',
|
||||
columnClass: 'col-md-11',
|
||||
simpleTip: {
|
||||
awToolTip: "Inventory: {{inventory_source.summary_fields.inventory.name}}",
|
||||
dataPlacement: "top"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -591,6 +591,9 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(field.simpleTip) {
|
||||
html += `<span aw-tool-tip="${field.simpleTip.awToolTip}" data-placement=${field.simpleTip.dataPlacement}>`;
|
||||
}
|
||||
// Add icon:
|
||||
if (field.ngShowIcon) {
|
||||
html += "<i ng-show=\"" + field.ngShowIcon + "\" class=\"" + field.icon + "\"></i> ";
|
||||
@ -615,6 +618,9 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
||||
if (field.text) {
|
||||
html += field.text;
|
||||
}
|
||||
if(field.simpleTip) {
|
||||
html += `</span>`;
|
||||
}
|
||||
}
|
||||
|
||||
if (list.name === 'hosts' || list.name === 'groups') {
|
||||
|
||||
@ -103,7 +103,8 @@ angular.module('templates', [surveyMaker.name, templatesList.name, jobTemplatesA
|
||||
},
|
||||
inventory_source_search: {
|
||||
value: {
|
||||
page_size: '5'
|
||||
page_size: '5',
|
||||
not__source: ''
|
||||
},
|
||||
squash: true,
|
||||
dynamic: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user