mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
ensure notification template re-loads after saving
This commit is contained in:
@@ -45,9 +45,9 @@ function NotificationTemplate({ setBreadcrumb, i18n }) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchTemplate();
|
fetchTemplate();
|
||||||
}, [fetchTemplate]);
|
}, [fetchTemplate, location.pathname]);
|
||||||
|
|
||||||
if (error) {
|
if (!isLoading && error) {
|
||||||
return (
|
return (
|
||||||
<PageSection>
|
<PageSection>
|
||||||
<Card>
|
<Card>
|
||||||
@@ -66,7 +66,7 @@ function NotificationTemplate({ setBreadcrumb, i18n }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const showCardHeader = !isLoading && !location.pathname.endsWith('edit');
|
const showCardHeader = !location.pathname.endsWith('edit');
|
||||||
const tabs = [
|
const tabs = [
|
||||||
{
|
{
|
||||||
name: (
|
name: (
|
||||||
|
|||||||
Reference in New Issue
Block a user