Ghost/ghost/admin/app/models
Kevin Ansfield 887f4d3ac2
🐛 Fixed editor unsaved changes modal showing too often (#20787)
ref [ENG-661](https://linear.app/tryghost/issue/ENG-661/) 
ref [ONC-253](https://linear.app/tryghost/issue/ONC-253/)
ref [PLG-174](https://linear.app/tryghost/issue/PLG-174/)

- restored the original but reverted fix for unsaved changes modal from https://github.com/TryGhost/Ghost/pull/20687
- updated code to remove some incorrect early-falsy-return logic in `editorController.hasDirtyAttributes` that prevented save of unsaved changes on the underlying model (e.g. excerpt)
- updated unit tests so they are testing real post model instances and therefore are testing what we expect them to test
- added acceptance tests to ensure autosave is working for title and excerpt fields

---------

Co-authored-by: Ronald Langeveld <hi@ronaldlangeveld.com>
2024-08-19 18:03:13 +00:00
..
action.js
api-key.js
base.js
collection.js Added basic UI for collection posts 2023-06-19 14:38:01 +07:00
custom-theme-setting-list.js
custom-theme-setting.js Ensure hidden settings return falsy when used with the @custom helper (#17920) 2023-09-13 08:38:31 +01:00
email.js Added email feedback column (#15698) 2022-10-27 11:22:50 +04:00
integration.js
invite.js
label.js
member-subscription.js
member-tier.js
member.js 🔒 Added support for logging out members on all devices (#18935) 2023-11-15 17:10:28 +01:00
mention.js Added page resources to emails (#16315) 2023-02-22 21:02:15 +08:00
navigation-item.js
newsletter.js Renamed subtitle to excerpt (#20334) 2024-06-05 17:59:30 +01:00
notification.js
offer.js
page.js
post-revision.js Added custom excerpt to post revisions (#20323) 2024-06-05 14:47:33 +01:00
post.js 🐛 Fixed editor unsaved changes modal showing too often (#20787) 2024-08-19 18:03:13 +00:00
role.js
setting.js Fixed default sender address when email is managed (#19186) 2023-11-29 19:24:16 +00:00
snippet.js Wired lexical snippets to Ghost (#16647) 2023-04-17 17:39:04 +04:00
tag.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
theme.js Enabled page features (#17544) 2023-07-31 14:22:19 -05:00
tier-benefit-item.js
tier.js
user.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
webhook.js