mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #1089 from mabashian/activity-stream-hosts-subtitle
Activity Stream bug fixes
This commit is contained in:
commit
35f1253bf4
@ -15,8 +15,8 @@ export default ['templateUrl', function(templateUrl) {
|
||||
$scope.streamTarget = ($state.params && $state.params.target) ? $state.params.target : 'dashboard';
|
||||
|
||||
$scope.options = [
|
||||
{label: 'All Activity', value: 'dashboard'},
|
||||
{label: 'Credentials', value: 'credential'},
|
||||
{label: 'Dashboard', value: 'dashboard'},
|
||||
{label: 'Hosts', value: 'host'},
|
||||
{label: 'Inventories', value: 'inventory'},
|
||||
{label: 'Inventory Scripts', value: 'inventory_script'},
|
||||
@ -38,11 +38,11 @@ export default ['templateUrl', function(templateUrl) {
|
||||
|
||||
if($scope.streamTarget && $scope.streamTarget == 'dashboard') {
|
||||
// Just navigate to the base activity stream
|
||||
$state.go('activityStream', {}, {inherit: false, reload: true});
|
||||
$state.go('activityStream', {}, {inherit: false});
|
||||
}
|
||||
else {
|
||||
// Attach the taget to the query parameters
|
||||
$state.go('activityStream', {target: $scope.streamTarget});
|
||||
$state.go('activityStream', {target: $scope.streamTarget}, {inherit: false});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ export default
|
||||
function () {
|
||||
return function (target) {
|
||||
|
||||
var rtnTitle = 'DASHBOARD';
|
||||
var rtnTitle = 'ALL ACTIVITY';
|
||||
|
||||
switch(target) {
|
||||
case 'project':
|
||||
@ -49,6 +49,9 @@ export default
|
||||
case 'schedule':
|
||||
rtnTitle = 'SCHEDULES';
|
||||
break;
|
||||
case 'host':
|
||||
rtnTitle = 'HOSTS';
|
||||
break;
|
||||
}
|
||||
|
||||
return rtnTitle;
|
||||
|
Loading…
Reference in New Issue
Block a user