mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 22:48:02 -03:30
Fix notification list item detail pathname link
This commit is contained in:
parent
bf6064db21
commit
52c8033a08
@ -219,7 +219,7 @@ function NotificationList({
|
||||
<NotificationListItem
|
||||
key={notification.id}
|
||||
notification={notification}
|
||||
detailUrl={`/notifications/${notification.id}`}
|
||||
detailUrl={`/notification_templates/${notification.id}/details`}
|
||||
canToggleNotifications={
|
||||
canToggleNotifications &&
|
||||
!loadingToggleIds.includes(notification.id)
|
||||
|
||||
@ -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>
|
||||
</>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user