mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
Fix notification list item detail pathname link
This commit is contained in:
@@ -18,6 +18,7 @@ import ContentError from '../../components/ContentError';
|
||||
import { NotificationTemplatesAPI } from '../../api';
|
||||
import NotificationTemplateDetail from './NotificationTemplateDetail';
|
||||
import NotificationTemplateEdit from './NotificationTemplateEdit';
|
||||
import ContentLoading from '../../components/ContentLoading';
|
||||
|
||||
function NotificationTemplate({ setBreadcrumb, i18n }) {
|
||||
const { id: templateId } = useParams();
|
||||
@@ -94,20 +95,19 @@ function NotificationTemplate({ setBreadcrumb, i18n }) {
|
||||
to="/notification_templates/:id/details"
|
||||
exact
|
||||
/>
|
||||
{isLoading && <ContentLoading />}
|
||||
{template && (
|
||||
<>
|
||||
<Route path="/notification_templates/:id/edit">
|
||||
<NotificationTemplateEdit
|
||||
template={template}
|
||||
defaultMessages={defaultMessages}
|
||||
isLoading={isLoading}
|
||||
/>
|
||||
</Route>
|
||||
<Route path="/notification_templates/:id/details">
|
||||
<NotificationTemplateDetail
|
||||
template={template}
|
||||
defaultMessages={defaultMessages}
|
||||
isLoading={isLoading}
|
||||
/>
|
||||
</Route>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user