ganglia / ganglia-web

Ganglia Web Frontend
BSD 3-Clause "New" or "Revised" License
316 stars 168 forks source link

Do not show current Grid in 'Choose a Source.' #296

Closed olsonbg closed 8 years ago

olsonbg commented 8 years ago

The 'Choose a Source' button was listing the current Grid. This returns the behavior back to before 2164f3fb3b3a77f2501627400d406dffdcb9578, where the current Grid was not shown in the list. This also fixes the problem that 2164f3fb3b3a77f2501627400d406dffdcb9578 was attempting to address, where a cluster with the same name as a grid would get filtered out.

The logic of 2164f3fb3b3a77f2501627400d406dffdcb9578 was flawed because $context is always "meta" at that point, making the if statement always false.

Now it checks if the name is the same as the current grid and if it is a grid, is so, then skip it.