Deleting disconnected switches
Added functionality for removing disconnected switches. Function checks if current switch has status "disconnected", and enables the option accordingly.
Screencaps from the feature:
If switch doesn't have disconnected status, deletion is blocked.
If switch has disconnected status, deletion is enabled.
Double verification for deletion.
User is informed that the switch has been deleted.
After this the switch list is refreshed and switch menu will be closed automatically after 2 seconds.
If user has invalid permissions, deletion will fail and the user will be informed.
Possible features for development:
- Users permissions would be checked before sending the delete request, and possible disable the option entirely.