Some time ago, @Hooverdan brought up the idea of providing an easy way to reset the configuration of a Service to its default configuration (or unconfigured state depending on the Service in question):
This feature is a “definitely-needed” enhancement for our Services system and one that would almost be necessary for my current work (Add Tailscale integration · Issue #2679 · rockstor/rockstor-core · GitHub). For these reasons, I’m thinking of addressing that next but would like feedback from our community on the most sensible and user-friendly way to do so. I would thus appreciate if I could get constructive and helpful feedback below.
The best way to implement this “configuration reset for 1 service” that I can think of would be a simple button for each Service. Clicking this button would turn off the service in question and reset its configuration in the database to its default, as if it had never been configured. What I’m wondering is how to best present/integrate such button in Rockstor’s UI.
As a reminder, that page currently looks like:
Add another icon next to the little wrench icon (used to configure a Service) that would do such reset. Clicking that button would bring a confirmation pop-up to make sure one doesn’t reset a service’s configuration by mistake.
Add a big button labeled “Reset configuration” in the Service configuration window, with a red background or something like that. Clicking that button would bring a confirmation pop-up to make sure one doesn’t reset a service’s configuration by mistake.
What would be people’s preference?
- Option A
- Option B
- Other? Please describe…