On 2016-10-26 17:02, Liz Blanchard wrote:
In Cockpit we use them for some "Are you really sure you want to delete this".
I wish there was a better way of doing those. Been trying to use a selection mode for some (so you have to press a button to get into a mode where you're allowed to delete to avoid accidental deletes), and also considered doing a undo action that stays around for a little while and then goes away.
A recent place we used a confirmation dialog was for networking actions that results in the administrator getting disconnected from the Cockpit UI, such as turning off the network card, or changing the IP address of the interface that one connects to Cockpit on. This prevents being out of luck in situations where you have several network cards, you're connected to one of them, and then wants to turn of another one, but selects the one you're on by accident.
(Under the hood, networkmanager takes a snapshot of the state, figures out Cockpit lost it's connection and reverts to the previous configuration)
Here is a mockup of how it works: