add support for applications activity stream

This commit is contained in:
John Mitchell 2018-04-26 13:23:03 -04:00
parent 72254758f6
commit 3bcc48402c
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94
4 changed files with 7 additions and 2 deletions

View File

@ -62,7 +62,6 @@ function ApplicationsRun ($stateExtender, strings) {
},
data: {
activityStream: true,
// TODO: double-check activity stream works
activityStreamTarget: 'application'
},
views: {
@ -111,7 +110,6 @@ function ApplicationsRun ($stateExtender, strings) {
},
data: {
activityStream: true,
// TODO: double-check activity stream works
activityStreamTarget: 'application'
},
views: {

View File

@ -43,6 +43,9 @@ export default function GetTargetTitle(i18n) {
case 'template':
rtnTitle = i18n._('TEMPLATES');
break;
case 'application':
rtnTitle = i18n._('APPLICATIONS');
break;
}
return rtnTitle;

View File

@ -18,6 +18,9 @@ export default function ModelToBasePathKey() {
var basePathKey;
switch(model) {
case 'application':
basePathKey = 'applications';
break;
case 'project':
basePathKey = 'projects';
break;

View File

@ -21,6 +21,7 @@ export default ['templateUrl', 'i18n', function(templateUrl, i18n) {
$scope.options = [
{label: i18n._('All Activity'), value: 'dashboard'},
{label: i18n._('Applications'), value: 'application'},
{label: i18n._('Credentials'), value: 'credential'},
{label: i18n._('Hosts'), value: 'host'},
{label: i18n._('Inventories'), value: 'inventory'},