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
4 changed files with 7 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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