Merge pull request #3086 from kialam/fix-3081-duplicate-template-expanded

Fix expanded view not persisting when a user copies a JT/WF.

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-01-30 18:46:24 +00:00
committed by GitHub

View File

@@ -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'));