Ghost/ghost/admin/app/components/members/modals
Kevin Ansfield 3817f583fa 🐛 Fixed unexpected "unsaved changes" modal when deleting a member
closes https://github.com/TryGhost/Team/issues/2275

When deleting a member, after confirming deletion another "unsaved changes" modal popped up. From that point, if you clicked to stay you remained on the member screen with stale data (the member was still deleted) resulting in further errors when any attempt to make changes was made.

- prevented the unsaved changes check running for a deleted member because it would always return `true` in that case
- ensured the data setup for the unsaved changes check still occurs when a member is accessed directly via the URL
  - previously it was skipped because the data setup only occurred inside `fetchMemberTask` but that isn't called when the route already loaded the model via it's `model()` hook
2022-12-05 11:48:37 +00:00
..
bulk-add-label.hbs 🐛 Fixed broken close buttons on modals (#15514) 2022-10-04 06:33:49 +04:00
bulk-add-label.js Moved members modals 2022-09-09 18:12:03 +01:00
bulk-delete.hbs Moved members modals 2022-09-09 18:12:03 +01:00
bulk-delete.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
bulk-remove-label.hbs 🐛 Fixed broken close buttons on modals (#15514) 2022-10-04 06:33:49 +04:00
bulk-remove-label.js Moved members modals 2022-09-09 18:12:03 +01:00
bulk-unsubscribe.hbs Added specific newsletter support for bulk unsubscribes (#15742) 2022-11-16 14:29:00 +07:00
bulk-unsubscribe.js Added specific newsletter support for bulk unsubscribes (#15742) 2022-11-16 14:29:00 +07:00
delete-member.hbs 🐛 Fixed unexpected "unsaved changes" modal when deleting a member 2022-12-05 11:48:37 +00:00
delete-member.js Switched delete member modal to new modal pattern (#15467) 2022-09-24 18:18:34 +02:00