diff --git a/awx/ui/client/legacy-styles/lists.less b/awx/ui/client/legacy-styles/lists.less index 270d3dad59..020d306dfc 100644 --- a/awx/ui/client/legacy-styles/lists.less +++ b/awx/ui/client/legacy-styles/lists.less @@ -181,6 +181,10 @@ table, tbody { display: flex; } +.List-auxActionStream { + width: 175px; +} + .List-buttonSubmit { background-color: @submit-button-bg; color: @submit-button-text; diff --git a/awx/ui/client/src/activity-stream/streamDropdownNav/stream-dropdown-nav.directive.js b/awx/ui/client/src/activity-stream/streamDropdownNav/stream-dropdown-nav.directive.js index 1652ab6e64..b7c71e338a 100644 --- a/awx/ui/client/src/activity-stream/streamDropdownNav/stream-dropdown-nav.directive.js +++ b/awx/ui/client/src/activity-stream/streamDropdownNav/stream-dropdown-nav.directive.js @@ -4,13 +4,13 @@ * All Rights Reserved *************************************************/ -export default [function() { +export default ['templateUrl', function(templateUrl) { return { restrict: 'E', scope: true, replace: true, - template: '', - controller: ['$scope', '$state', function($scope, $state) { + templateUrl: templateUrl('activity-stream/streamDropdownNav/stream-dropdown-nav'), + controller: ['$scope', '$state', 'CreateSelect2', function($scope, $state, CreateSelect2) { $scope.streamTarget = ($state.params && $state.params.target) ? $state.params.target : 'dashboard'; @@ -29,6 +29,11 @@ export default [function() { {label: 'Users', value: 'user'} ]; + CreateSelect2({ + element:'#stream-dropdown-nav', + multiple: false + }); + $scope.changeStreamTarget = function(){ if($scope.streamTarget && $scope.streamTarget == 'dashboard') { diff --git a/awx/ui/client/src/activity-stream/streamDropdownNav/stream-dropdown-nav.partial.html b/awx/ui/client/src/activity-stream/streamDropdownNav/stream-dropdown-nav.partial.html new file mode 100644 index 0000000000..d70b0ce2f8 --- /dev/null +++ b/awx/ui/client/src/activity-stream/streamDropdownNav/stream-dropdown-nav.partial.html @@ -0,0 +1,4 @@ +
+ +