make host config required when allow callbacks checkbox is checked

This commit is contained in:
John Mitchell 2017-03-07 15:20:13 -05:00
parent 3a95c34a04
commit e29fb01f4c

View File

@ -349,7 +349,11 @@ export default
dataPlacement: 'right',
dataTitle: i18n._("Host Config Key"),
dataContainer: "body",
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)',
awRequiredWhen: {
reqExpression: 'allow_callbacks',
alwaysShowAsterisk: true
}
},
labels: {
label: i18n._('Labels'),