Bug #5858
closedServices Status Widget - Hide Service
100%
Description
Hide service hides all services with same name. For example with multiple OpenVPN services running. Hiding one hides all. So it's all or none.
Updated by Anonymous over 8 years ago
- Status changed from New to Feedback
- Assignee changed from Anonymous to NOYB NOYB
Not an easy fix. If the services have identical names, the only other option is to hide by table row number. But if you install or remove a service, the rows will now be off.
Perhaps automatically add a suffix to identical service names?
Updated by Anonymous over 8 years ago
An incrementing suffix is added to tth service names so that they remain unique in the multiselect. e.g.:
dpinger
dpinger_2
dpinger_3
Updated by Anonymous over 8 years ago
- % Done changed from 0 to 100
Applied in changeset 7d3c67dea8d1f305da586ba980489048727d5e74.
Updated by NOYB NOYB over 8 years ago
Now though it shows openvpn_2 as being down (yellow x). Guessing because there is no actual service by that name.
Updated by NOYB NOYB over 8 years ago
It sees the suffixed service as being up. But cannot hide it. Only the non suffixed service can be hidden.
Updated by NOYB NOYB over 8 years ago
In status services there is some code that produces a unique id and link for each of the services. Maybe that could be useful.
<a href="#" id="openvpn-restartservice-server-1" >
<a href="#" id="openvpn-restartservice-server-2" >
Updated by Anonymous over 8 years ago
Should be OK now, but I'll check that out. Thanks.
Updated by NOYB NOYB over 8 years ago
Nope. Still cannot hide openvpn_2. Returning to the config after selecting to hide, it is as though it was not selected.
Hiding the un-suffixed openvpn service works fine still though.
Updated by NOYB NOYB over 8 years ago
Ah, think I missed that last commit. It's working. Thanks.