mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 05:47:38 -02:30
Merge pull request #5186 from jaredevantabor/smart-search
Smart search, and invalid searches
This commit is contained in:
@@ -264,13 +264,13 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear
|
|||||||
|
|
||||||
this.error(response.data, response.status);
|
this.error(response.data, response.status);
|
||||||
|
|
||||||
return response;
|
throw response;
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
},
|
},
|
||||||
error(data, status) {
|
error(data, status) {
|
||||||
ProcessErrors($rootScope, data, status, null, {
|
ProcessErrors($rootScope, null, status, null, {
|
||||||
hdr: 'Error!',
|
hdr: 'Error!',
|
||||||
msg: 'Call to ' + this.url + '. GET returned: ' + status
|
msg: "Invalid search term entered."
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -182,8 +182,11 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', '
|
|||||||
else {
|
else {
|
||||||
encodeParams.searchTerm = true;
|
encodeParams.searchTerm = true;
|
||||||
}
|
}
|
||||||
|
removed = qs.encodeParam(encodeParams);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
removed = setDefaults(termParts[termParts.length-1]);
|
||||||
}
|
}
|
||||||
removed = qs.encodeParam(encodeParams);
|
|
||||||
}
|
}
|
||||||
removeFromQuerySet(queryset);
|
removeFromQuerySet(queryset);
|
||||||
if(!$scope.querySet) {
|
if(!$scope.querySet) {
|
||||||
|
|||||||
Reference in New Issue
Block a user