Bug #5858
closed
Services Status Widget - Hide Service
Added by NOYB NOYB almost 9 years ago.
Updated almost 9 years ago.
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.
- Assignee set to Anonymous
- 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?
An incrementing suffix is added to tth service names so that they remain unique in the multiselect. e.g.:
dpinger
dpinger_2
dpinger_3
- % Done changed from 0 to 100
Now though it shows openvpn_2 as being down (yellow x). Guessing because there is no actual service by that name.
Could be. I'll investigate.
Just pushed a change that should help.
It sees the suffixed service as being up. But cannot hide it. Only the non suffixed service can be hidden.
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" >
Should be OK now, but I'll check that out. Thanks.
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.
Ah, think I missed that last commit. It's working. Thanks.
- Status changed from Feedback to Resolved
Also available in: Atom
PDF