mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 07:47:44 -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;
|
border: 1px solid @d7grey;
|
||||||
background: white;
|
background: white;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
|
border-top: 0px;
|
||||||
border-top-left-radius: 0px;
|
border-top-left-radius: 0px;
|
||||||
border-top-right-radius: 0px;
|
border-top-right-radius: 0px;
|
||||||
z-index: 50000;
|
z-index: 50000;
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ export default ['$scope', 'Refresh', 'tagSearchService',
|
|||||||
.getCurrentTags($scope
|
.getCurrentTags($scope
|
||||||
.currentSearchFilters);
|
.currentSearchFilters);
|
||||||
|
|
||||||
if (!tagSearchService.isDuplicate(tags, newTag)) {
|
if (!tagSearchService.isDuplicate(tags, newTag) && !!newTag.name) {
|
||||||
tags.push(newTag);
|
tags.push(newTag);
|
||||||
$scope.updateSearch(tags);
|
$scope.updateSearch(tags);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
|
|||||||
if (tag.type === "text") {
|
if (tag.type === "text") {
|
||||||
tag.url = tag.value + "__icontains=" + textVal;
|
tag.url = tag.value + "__icontains=" + textVal;
|
||||||
tag.name = 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.url = selectVal.value;
|
||||||
tag.name = selectVal.label;
|
tag.name = selectVal.label;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user