Add a configurable limit for job forks

This commit is contained in:
Jake McDermott
2020-01-07 10:12:47 -05:00
parent bf3042e85a
commit 0d98a1980e
6 changed files with 44 additions and 3 deletions

View File

@@ -58,6 +58,10 @@ export default ['i18n', function(i18n) {
type: 'text',
reset: 'ANSIBLE_FACT_CACHE_TIMEOUT',
},
MAX_FORKS: {
type: 'text',
reset: 'MAX_FORKS',
},
PROJECT_UPDATE_VVV: {
type: 'toggleSwitch',
},

View File

@@ -233,7 +233,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
addApiErrors(form.fields[field], field);
}
}
if (defaultMsg) {
if (!fieldErrors && defaultMsg) {
Alert(defaultMsg.hdr, defaultMsg.msg);
}
} else if (typeof data === 'object' && data !== null) {