mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
adding notification template activity stream
This commit is contained in:
parent
d4134aabe3
commit
893dd20ead
@ -167,7 +167,7 @@ table, tbody {
|
||||
}
|
||||
|
||||
.List-auxActionStream {
|
||||
width: 175px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.List-action:not(.ng-hide) ~ .List-action:not(.ng-hide) {
|
||||
|
||||
@ -26,6 +26,7 @@ export default ['templateUrl', 'i18n', function(templateUrl, i18n) {
|
||||
{label: i18n._('Inventories'), value: 'inventory'},
|
||||
{label: i18n._('Inventory Scripts'), value: 'inventory_script'},
|
||||
{label: i18n._('Jobs'), value: 'job'},
|
||||
{label: i18n._('Notification Templates'), value: 'notification_template'},
|
||||
{label: i18n._('Organizations'), value: 'organization'},
|
||||
{label: i18n._('Projects'), value: 'project'},
|
||||
{label: i18n._('Schedules'), value: 'schedule'},
|
||||
|
||||
@ -34,6 +34,9 @@ export default
|
||||
case 'team':
|
||||
rtnTitle = i18n._('TEAMS');
|
||||
break;
|
||||
case 'notification_template':
|
||||
rtnTitle = i18n._('NOTIFICATION TEMPLATES');
|
||||
break;
|
||||
case 'organization':
|
||||
rtnTitle = i18n._('ORGANIZATIONS');
|
||||
break;
|
||||
|
||||
@ -39,6 +39,9 @@ export default
|
||||
case 'team':
|
||||
basePathKey = 'teams';
|
||||
break;
|
||||
case 'notification_template':
|
||||
basePathKey = 'notification_templates';
|
||||
break;
|
||||
case 'organization':
|
||||
basePathKey = 'organizations';
|
||||
break;
|
||||
|
||||
@ -79,6 +79,10 @@ angular.module('notifications', [
|
||||
]
|
||||
}
|
||||
},
|
||||
data: {
|
||||
activityStream: true,
|
||||
activityStreamTarget: 'notification_template'
|
||||
},
|
||||
ncyBreadcrumb: {
|
||||
parent: 'setup',
|
||||
label: N_('NOTIFICATIONS')
|
||||
|
||||
@ -76,7 +76,8 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti
|
||||
}
|
||||
break;
|
||||
case 'notification_template':
|
||||
throw {name : 'NotImplementedError', message : 'activity.summary_fields to build this url not implemented yet'};
|
||||
url += `notification_templates/${obj.id}`;
|
||||
break;
|
||||
case 'role':
|
||||
throw {name : 'NotImplementedError', message : 'role object management is not consolidated to a single UI view'};
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user