clean up launch prompt credentials, display errors

This commit is contained in:
Keith Grant
2020-04-03 11:47:06 -07:00
parent 0b9c5c410a
commit 8baa9d8458
4 changed files with 66 additions and 50 deletions

View File

@@ -66,6 +66,9 @@ function LaunchPrompt({ config, resource, onLaunch, onCancel, i18n }) {
if (values.inventory) {
postValues.inventory_id = values.inventory.id;
}
if (values.credentials) {
postValues.credentials = values.credentials.map(c => c.id);
}
onLaunch(postValues);
};