make activity stream cred types work

This commit is contained in:
John Mitchell 2017-07-31 13:37:10 -04:00
parent 9d1853f6df
commit 0673e21e4b
4 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,9 @@ export default function GetTargetTitle(i18n) {
case 'project':
rtnTitle = i18n._('PROJECTS');
break;
case 'credential_type':
rtnTitle = i18n._('CREDENTIAL TYPES');
break;
case 'inventory':
rtnTitle = i18n._('INVENTORIES');
break;

View File

@ -21,6 +21,9 @@ export default function ModelToBasePathKey() {
case 'project':
basePathKey = 'projects';
break;
case 'credential_type':
basePathKey = 'credential_types';
break;
case 'inventory':
basePathKey = 'inventory';
break;

View File

@ -29,6 +29,7 @@ export default ['templateUrl', 'i18n', function(templateUrl, i18n) {
{label: i18n._('Notification Templates'), value: 'notification_template'},
{label: i18n._('Organizations'), value: 'organization'},
{label: i18n._('Projects'), value: 'project'},
{label: i18n._('Credential Types'), value: 'credential_type'},
{label: i18n._('Schedules'), value: 'schedule'},
{label: i18n._('Teams'), value: 'team'},
{label: i18n._('Templates'), value: 'template'},

View File

@ -38,7 +38,7 @@ angular.module('credentialTypes', [
},
data: {
activityStream: true,
activityStreamTarget: 'custom_inventory_script' // TODO: change to 'credential_type'...there's probably more work that needs to be done to hook up activity stream
activityStreamTarget: 'credential_type'
},
ncyBreadcrumb: {
parent: 'setup',