rohityadavcloud commented on code in PR #7373:
URL: https://github.com/apache/cloudstack/pull/7373#discussion_r1170854429
##########
ui/src/views/AutogenView.vue:
##########
@@ -1573,6 +1575,20 @@ export default {
}
} else if (this.$route.name === 'publicip') {
query.state = filter
+ } else if (['pod', 'cluster'].includes(this.$route.name)) {
+ if (filter === 'all') {
+ delete query.allocationstate
+ } else {
+ query.allocationstate = filter
+ }
+ } else if (['host'].includes(this.$route.name)) {
+ if (filter === 'all') {
+ delete query.resourcestate
+ } else if (['up', 'down', 'alert'].includes(filter)) {
+ query.state = filter
+ } else {
+ query.resourcestate = filter
Review Comment:
```suggestion
delete query.resourcestate
delete query.state
} else if (['up', 'down', 'alert'].includes(filter)) {
delete query.resourcestate
query.state = filter
} else {
delete query.state
query.resourcestate = filter
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]