Ghost/ghost/admin/app/components/settings
Kevin Ansfield e433f8b9cf Added drag-and-drop sorting of newsletters
closes https://github.com/TryGhost/Team/issues/1483

- updated newsletters list to use `<SortableObjects>` and `<DraggableObject>`
- swapped the `filteredNewsletters` reactive getter for a tracked property because `<SortableObjects>` replaces the value with a new array when re-ordering which isn't compatible with a getter
  - required explicit update of the list any time the list should change through filter swap, archive, unarchive
  - required explicit update of the list via router event when leaving the "new newsletter" route so any newly added newsletter can be displayed
- added action for handling update of `sort_order` properties when a re-order occurs
  - updates every newsletter setting `sort_order` of the active newsletters first based on the new order, followed by all archived newsletters following their existing order
- disabled sorting of newsletters in the archived newsletters list
  - hides the grab handle and disables the resize on hover
  - allowing re-order of archived newsletters would complicate the re-order+save algorithm and re-ordering archived newsletters doesn't have a use-case
2022-04-07 16:42:50 +01:00
..
design Refactored general design settings form components 2022-02-04 16:04:58 +00:00
form-fields Fixed unsplash icon positioning in design settings 2022-03-16 08:51:14 +01:00
members Revert "Removed unused modal files" 2022-03-14 12:38:39 +00:00
members-email Updated Email newsletter settings 2022-01-27 21:40:30 +00:00
members-email-labs Added drag-and-drop sorting of newsletters 2022-04-07 16:42:50 +01:00
members-default-post-access.hbs Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
members-default-post-access.js Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
members-email-labs.hbs Wired up newsletter management with real newsletter model and API 2022-04-04 19:30:52 +01:00
members-email-labs.js Wired up newsletter management with real newsletter model and API 2022-04-04 19:30:52 +01:00
members-email.hbs Created labs versions of members-email settings code 2022-03-31 11:06:21 +01:00
members-email.js Created labs versions of members-email settings code 2022-03-31 11:06:21 +01:00
members-subscription-access.hbs Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
members-subscription-access.js Hid email related ui when subscription access is set to 'Nobody' 2022-02-11 09:29:11 +01:00