From 6f9cf6a649758cdb422f17653529d46cdf28b1c7 Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Mon, 28 Jan 2019 12:05:43 -0500 Subject: [PATCH] Fix expanded view not persisting when a user copies a JT/WF. --- awx/ui/client/features/templates/templatesList.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/features/templates/templatesList.controller.js b/awx/ui/client/features/templates/templatesList.controller.js index 5170589d59..99def99d6d 100644 --- a/awx/ui/client/features/templates/templatesList.controller.js +++ b/awx/ui/client/features/templates/templatesList.controller.js @@ -234,7 +234,7 @@ function ListTemplatesController( dismissButton: false, dismissOnTimeout: true }); - $state.go('.', null, { reload: true }); + refreshTemplates(); }) .catch(createErrorHandler('copy job template', 'POST')) .finally(() => Wait('stop')); @@ -264,7 +264,7 @@ function ListTemplatesController( dismissButton: false, dismissOnTimeout: true }); - $state.go('.', null, { reload: true }); + refreshTemplates(); }) .catch(createErrorHandler('copy workflow', 'POST')) .finally(() => Wait('stop'));