Merge pull request #1497 from marshmalien/feat/display_invalid_items_onPrompt

Denote invalid template when no inventory and no prompt-for-inventory
This commit is contained in:
Marliana Lara 2018-03-09 10:38:20 -05:00 committed by GitHub
commit 882ed4d05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ function ListTemplatesController(
vm.isInvalid = (template) => {
if(isJobTemplate(template)) {
return (template.inventory === null || template.project == null)
return template.project === null || (template.inventory === null && template.ask_inventory_on_launch === false);
} else {
return false;
}