1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 20:02:35 +01:00
BookStack/app/Entities
Dan Brown f99af807d0
Reviewed and refactored additional editor draft save warnings
- Added testing to cover warning cases.
- Refactored logic to be simpler and move much of the business out of
  the controller.
- Added new message that's more suitable to the case this was handling.
- For detecting an outdated draft, checked the draft created_at time
  instead of updated_at to better fit the scenario being checked.
- Updated some method types to align with those potentially being used
  in the logic of the code.
- Added a cache of shown messages on the front-end to prevent them
  re-showing on every save during the session, even if dismissed.
2021-10-04 20:26:55 +01:00
..
Models Reviewed and refactored additional editor draft save warnings 2021-10-04 20:26:55 +01:00
Queries Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Repos Applied stylci advisories 2021-08-24 21:23:55 +01:00
Tools Reviewed and refactored additional editor draft save warnings 2021-10-04 20:26:55 +01:00
BreadcrumbsViewComposer.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
EntityProvider.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00