mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
make activity stream cred types work
This commit is contained in:
@@ -7,6 +7,9 @@ export default function GetTargetTitle(i18n) {
|
|||||||
case 'project':
|
case 'project':
|
||||||
rtnTitle = i18n._('PROJECTS');
|
rtnTitle = i18n._('PROJECTS');
|
||||||
break;
|
break;
|
||||||
|
case 'credential_type':
|
||||||
|
rtnTitle = i18n._('CREDENTIAL TYPES');
|
||||||
|
break;
|
||||||
case 'inventory':
|
case 'inventory':
|
||||||
rtnTitle = i18n._('INVENTORIES');
|
rtnTitle = i18n._('INVENTORIES');
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ export default function ModelToBasePathKey() {
|
|||||||
case 'project':
|
case 'project':
|
||||||
basePathKey = 'projects';
|
basePathKey = 'projects';
|
||||||
break;
|
break;
|
||||||
|
case 'credential_type':
|
||||||
|
basePathKey = 'credential_types';
|
||||||
|
break;
|
||||||
case 'inventory':
|
case 'inventory':
|
||||||
basePathKey = 'inventory';
|
basePathKey = 'inventory';
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ export default ['templateUrl', 'i18n', function(templateUrl, i18n) {
|
|||||||
{label: i18n._('Notification Templates'), value: 'notification_template'},
|
{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._('Credential Types'), value: 'credential_type'},
|
||||||
{label: i18n._('Schedules'), value: 'schedule'},
|
{label: i18n._('Schedules'), value: 'schedule'},
|
||||||
{label: i18n._('Teams'), value: 'team'},
|
{label: i18n._('Teams'), value: 'team'},
|
||||||
{label: i18n._('Templates'), value: 'template'},
|
{label: i18n._('Templates'), value: 'template'},
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ angular.module('credentialTypes', [
|
|||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
activityStream: true,
|
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: {
|
ncyBreadcrumb: {
|
||||||
parent: 'setup',
|
parent: 'setup',
|
||||||
|
|||||||
Reference in New Issue
Block a user