From f2de453110f6aeadffa652d78b0885284447e19d Mon Sep 17 00:00:00 2001 From: Haokun-Chen Date: Mon, 16 Jul 2018 10:49:14 -0400 Subject: [PATCH] show active row indicator correctly when close active list item --- awx/ui/client/features/templates/templatesList.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/features/templates/templatesList.controller.js b/awx/ui/client/features/templates/templatesList.controller.js index b29ba33a96..f2058d0376 100644 --- a/awx/ui/client/features/templates/templatesList.controller.js +++ b/awx/ui/client/features/templates/templatesList.controller.js @@ -66,8 +66,10 @@ function ListTemplatesController( const job_template_id = _.get($state.params, 'job_template_id'); const workflow_job_template_id = _.get($state.params, 'workflow_job_template_id'); - if((job_template_id || workflow_job_template_id) && (newValue !== oldValue)) { + if((job_template_id || workflow_job_template_id)) { vm.activeId = parseInt($state.params.job_template_id || $state.params.workflow_job_template_id); + } else { + vm.activeId = ""; } }, true);