From 4fbfddaa93f427bf869ed7c6285c819cd9ac226c Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 26 Oct 2017 16:50:12 -0700 Subject: [PATCH] changes from PR feedback: removing ghost action icon and fixing a bug where the list of job templates was improperly updated when a job was running and live events were received. --- .../src/projects/projects-templates.route.js | 1 + awx/ui/client/src/shared/form-generator.js | 44 ++++++++++--------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/awx/ui/client/src/projects/projects-templates.route.js b/awx/ui/client/src/projects/projects-templates.route.js index 45c3caa2ea..0015c9661e 100644 --- a/awx/ui/client/src/projects/projects-templates.route.js +++ b/awx/ui/client/src/projects/projects-templates.route.js @@ -33,6 +33,7 @@ export default { ListDefinition: ['TemplateList', '$transition$', (TemplateList, $transition$) => { let id = $transition$.params().project_id; TemplateList.actions.add.ngClick = `$state.go('templates.addJobTemplate', {project_id: ${id}})`; + TemplateList.basePath = 'job_templates'; return TemplateList; }], Dataset: ['ListDefinition', 'QuerySet', '$stateParams', 'GetBasePath', '$interpolate', '$rootScope', diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index d90cac087a..6444370b3b 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -1950,29 +1950,31 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat if (collection.fieldActions) { html += "
"; for (act in collection.fieldActions) { - fAction = collection.fieldActions[act]; - html += ""; } - // html += SelectIcon({ action: act }); - //html += (fAction.label) ? " " + fAction.label + "": ""; - html += ""; } html += "
"; html += "\n";