mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
fix of tag search type dropdown border and empty tags
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
border: 1px solid @d7grey;
|
||||
background: white;
|
||||
padding: 5px 0;
|
||||
border-top: 0px;
|
||||
border-top-left-radius: 0px;
|
||||
border-top-right-radius: 0px;
|
||||
z-index: 50000;
|
||||
|
||||
@@ -74,7 +74,7 @@ export default ['$scope', 'Refresh', 'tagSearchService',
|
||||
.getCurrentTags($scope
|
||||
.currentSearchFilters);
|
||||
|
||||
if (!tagSearchService.isDuplicate(tags, newTag)) {
|
||||
if (!tagSearchService.isDuplicate(tags, newTag) && !!newTag.name) {
|
||||
tags.push(newTag);
|
||||
$scope.updateSearch(tags);
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
|
||||
if (tag.type === "text") {
|
||||
tag.url = tag.value + "__icontains=" + textVal;
|
||||
tag.name = textVal;
|
||||
} else if (selectVal.value.indexOf("=") > 0) {
|
||||
} else if (selectVal.value && typeof selectVal.value === 'string' && selectVal.value.indexOf("=") > 0) {
|
||||
tag.url = selectVal.value;
|
||||
tag.name = selectVal.label;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user