mirror of
https://github.com/ansible/awx.git
synced 2026-01-25 00:11:23 -03:30
ensure notification template re-loads after saving
This commit is contained in:
parent
e830da97f3
commit
4a616d9f81
@ -45,9 +45,9 @@ function NotificationTemplate({ setBreadcrumb, i18n }) {
|
||||
|
||||
useEffect(() => {
|
||||
fetchTemplate();
|
||||
}, [fetchTemplate]);
|
||||
}, [fetchTemplate, location.pathname]);
|
||||
|
||||
if (error) {
|
||||
if (!isLoading && error) {
|
||||
return (
|
||||
<PageSection>
|
||||
<Card>
|
||||
@ -66,7 +66,7 @@ function NotificationTemplate({ setBreadcrumb, i18n }) {
|
||||
);
|
||||
}
|
||||
|
||||
const showCardHeader = !isLoading && !location.pathname.endsWith('edit');
|
||||
const showCardHeader = !location.pathname.endsWith('edit');
|
||||
const tabs = [
|
||||
{
|
||||
name: (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user