mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Merge pull request #8540 from marshmalien/8461-notification-detail-link
Fix notification list to notification list item detail link Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
0567a2a3bf
@ -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