diff --git a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.js b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.js
index defa2ef920..5172fa3f38 100644
--- a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.js
+++ b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.js
@@ -178,6 +178,7 @@ function NotificationTemplatesList() {
{t`Name`}
{t`Status`}
{t`Type`}
+ {t`Organization`}
{t`Actions`}
}
diff --git a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.test.js b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.test.js
index aa7c73724c..98493f4b5b 100644
--- a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.test.js
+++ b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateList.test.js
@@ -20,6 +20,10 @@ const mockTemplates = {
url: '/notification_templates/1',
type: 'slack',
summary_fields: {
+ organization: {
+ id: 1,
+ name: 'Foo',
+ },
recent_notifications: [
{
status: 'success',
@@ -36,6 +40,10 @@ const mockTemplates = {
id: 2,
url: '/notification_templates/2',
summary_fields: {
+ organization: {
+ id: 2,
+ name: 'Bar',
+ },
recent_notifications: [],
user_capabilities: {
delete: true,
@@ -48,6 +56,10 @@ const mockTemplates = {
id: 3,
url: '/notification_templates/3',
summary_fields: {
+ organization: {
+ id: 3,
+ name: 'Test',
+ },
recent_notifications: [
{
status: 'failed',
diff --git a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.js b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.js
index ef98cdbd0f..a30a91f892 100644
--- a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.js
+++ b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.js
@@ -121,6 +121,13 @@ function NotificationTemplateListItem({
{NOTIFICATION_TYPES[template.notification_type] ||
template.notification_type}
+
+
+ {template.summary_fields.organization.name}
+
+ |
', () => {
);
const cells = wrapper.find('Td');
- expect(cells).toHaveLength(5);
+ expect(cells).toHaveLength(6);
expect(cells.at(1).text()).toEqual('Test Notification');
expect(cells.at(2).text()).toEqual('Success');
expect(cells.at(3).text()).toEqual('Slack');
@@ -133,6 +137,10 @@ describe('', () => {
template={{
...template,
summary_fields: {
+ organization: {
+ id: 3,
+ name: 'Test',
+ },
user_capabilities: {
copy: false,
edit: false,