adding notification template activity stream

This commit is contained in:
jaredevantabor 2017-02-02 15:19:54 -08:00
parent d4134aabe3
commit 893dd20ead
6 changed files with 14 additions and 2 deletions

View File

@ -167,7 +167,7 @@ table, tbody {
}
.List-auxActionStream {
width: 175px;
width: 200px;
}
.List-action:not(.ng-hide) ~ .List-action:not(.ng-hide) {

View File

@ -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'},

View File

@ -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;

View File

@ -39,6 +39,9 @@ export default
case 'team':
basePathKey = 'teams';
break;
case 'notification_template':
basePathKey = 'notification_templates';
break;
case 'organization':
basePathKey = 'organizations';
break;

View File

@ -79,6 +79,10 @@ angular.module('notifications', [
]
}
},
data: {
activityStream: true,
activityStreamTarget: 'notification_template'
},
ncyBreadcrumb: {
parent: 'setup',
label: N_('NOTIFICATIONS')

View File

@ -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: