mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 07:42:48 +08:00
JsonApiAdapter fix to make index "load more" work
This commit is contained in:
parent
9885a69eba
commit
61b0dfaa81
|
@ -3,7 +3,16 @@ import config from '../config/environment';
|
|||
|
||||
export default JsonApiAdapter.extend({
|
||||
|
||||
// Todo: make this loaded via an environment variable or something
|
||||
host: config.apiURL
|
||||
|
||||
// Todo: make this loaded via an environment variable or something
|
||||
host: config.apiURL,
|
||||
|
||||
// We can get rid of this after
|
||||
// https://github.com/kurko/ember-json-api/pull/59 is merged.
|
||||
extractMeta: function(store, type, payload) {
|
||||
if (payload && payload.meta) {
|
||||
store.metaForType(type, payload.meta);
|
||||
delete payload.meta;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user