Instead of calling IRepository.Rollback(), instead call IRepository.Load() to preview the prior version, and then include a "Rollback" and "Cancel" button in the navigation to allow the version to be restored, or to return to the current version.
Notes
- A warning may need to be displayed at the top of the page notifying the user that this is a preview of a previous version.
- Since we can't add a path variable after a wildcard, it might make sense for the version to be passed as a query string parameter
- Alternatively, we could add a new action, with a path format:
/OnTopic/Version/YYYY-MM-DD%20HH:M:S/WebPath*
- We can disable all of the fields so they can't be edited and then call
IRepository.Rollback() or we can allow the fields to be edited and then just call IRepository.Save() when they click "Rollback"; the latter is likely more intuitive.
Instead of calling
IRepository.Rollback(), instead callIRepository.Load()to preview the prior version, and then include a "Rollback" and "Cancel" button in the navigation to allow the version to be restored, or to return to the current version.Notes
IRepository.Rollback()or we can allow the fields to be edited and then just callIRepository.Save()when they click "Rollback"; the latter is likely more intuitive.