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