Module

FPO.UI.Modals.DirtyVersionModal

#dirtyVersionModal

dirtyVersionModal :: forall w action. Translator Labels -> action -> (Int -> Maybe Int -> action) -> Int -> Maybe Int -> action -> HTML w action

Modal for notifying the user of potentially lost changes.

Requires:

  1. a translator for the UI texts
  2. an action to cancel discarding
  3. an action to proceed discarding
  4. the element ID
  5. the version ID to change to

Modules