[Patternfly] Examples of Communication/Confirmation via modal

Andreas Nilsson anilsson at redhat.com
Thu Oct 27 10:36:14 UTC 2016


On 2016-10-26 17:02, Liz Blanchard wrote:
>
> Does anyone have examples of delete confirmations or other types of 
> modal messaging that they are using or looking to use?

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:
https://github.com/cockpit-project/cockpit/pull/5069#issuecomment-252241553

- Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/patternfly/attachments/20161027/7ee9525c/attachment.htm>


More information about the PatternFly mailing list