mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
fixing removeTerm for smart search to work
This commit is contained in:
@@ -375,10 +375,11 @@ export default ['$stateParams', '$scope', '$state', 'GetBasePath', 'QuerySet', '
|
|||||||
removed = searchWithoutKey(termParts[termParts.length-1]);
|
removed = searchWithoutKey(termParts[termParts.length-1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
removeFromQuerySet(queryset);
|
let cleared = _.cloneDeep(queryset);
|
||||||
|
removeFromQuerySet(cleared);
|
||||||
if(!$scope.querySet) {
|
if(!$scope.querySet) {
|
||||||
$state.go('.', {
|
$state.go('.', {
|
||||||
[$scope.iterator + '_search']: queryset }).then(function(){
|
[$scope.iterator + '_search']: cleared }).then(function(){
|
||||||
// ISSUE: for some reason deleting a tag from a list in a modal does not
|
// ISSUE: for some reason deleting a tag from a list in a modal does not
|
||||||
// remove the param from $stateParams. Here we'll manually check to make sure
|
// remove the param from $stateParams. Here we'll manually check to make sure
|
||||||
// that that happened and remove it if it didn't.
|
// that that happened and remove it if it didn't.
|
||||||
|
|||||||
Reference in New Issue
Block a user