diff --git a/awx/ui/client/lib/components/list/_index.less b/awx/ui/client/lib/components/list/_index.less index f1a0c8d371..36f9473cc0 100644 --- a/awx/ui/client/lib/components/list/_index.less +++ b/awx/ui/client/lib/components/list/_index.less @@ -168,6 +168,7 @@ display: flex; margin-left: @at-margin-left-list-row-item-tag-container; flex-wrap: wrap; + line-height: initial; } .at-RowItem-tag { diff --git a/awx/ui/client/lib/components/toggle/toggle-tag.directive.js b/awx/ui/client/lib/components/toggle/toggle-tag.directive.js index adcb6406cc..68a47df575 100644 --- a/awx/ui/client/lib/components/toggle/toggle-tag.directive.js +++ b/awx/ui/client/lib/components/toggle/toggle-tag.directive.js @@ -2,7 +2,8 @@ import { TRUNCATED, TRUNCATE_LENGTH } from './constants'; const templateUrl = require('~components/toggle/toggle-tag.partial.html'); -function controller () { +function controller ($scope, TagService) { + const { tags } = $scope; const vm = this; vm.truncatedLength = TRUNCATE_LENGTH; vm.truncated = TRUNCATED; @@ -10,8 +11,16 @@ function controller () { vm.toggle = () => { vm.truncated = !vm.truncated; }; + + vm.tags = []; + // build credentials from tags object + Object.keys(tags).forEach(key => { + vm.tags.push(TagService.buildCredentialTag(tags[key])); + }); } +controller.$inject = ['$scope', 'TagService']; + function atToggleTag () { return { restrict: 'E', diff --git a/awx/ui/client/lib/components/toggle/toggle-tag.partial.html b/awx/ui/client/lib/components/toggle/toggle-tag.partial.html index 83952ee7c8..e83d303eda 100644 --- a/awx/ui/client/lib/components/toggle/toggle-tag.partial.html +++ b/awx/ui/client/lib/components/toggle/toggle-tag.partial.html @@ -1,13 +1,13 @@