0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/core
Kevin Ansfield 459f2c4355 Improve PaginationRoute mixin
no issue
- returns the promise/result from `loadNextPage` so that it's return value can be utilised in closure actions
- sets the `isLoading` property in `loadFirstPage` to match `loadNextPage` behaviour
- reset the `isLoading` property even if the request fails
- adds a `didReceivePaginationMeta` hook so that consumers of the mixin can use the metadata values without having to rely on observers
  - eg. pulling the `total` into a separate property that can be manipulated when items are added/removed but still reset to the sever's total value the next time a page is loaded
- renames the `pagination-route` mixin to simply `pagination` as it's not tied to routes and works equally well in other objects that need to paginate an API resource
2016-04-19 10:53:45 +01:00
..
client Improve PaginationRoute mixin 2016-04-19 10:53:45 +01:00
server Merge pull request #6628 from ErisDS/migration-005 2016-04-15 15:51:52 +02:00
shared move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
test Merge pull request #6628 from ErisDS/migration-005 2016-04-15 15:51:52 +02:00
index.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00