Skip to content
Snippets Groups Projects

Korrektes paginiertes Nachladen in der Courseware.

Merged Marcus Eibrink-Lunzenauer requested to merge marcus/studip:427-fix-paginated-loading into main
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -803,7 +803,7 @@ export const actions = {
@@ -803,7 +803,7 @@ export const actions = {
do {
do {
const optionsWithPages = {
const optionsWithPages = {
...options,
...options,
'page[offset]': offset++,
'page[offset]': offset,
'page[limit]': limit,
'page[limit]': limit,
};
};
await dispatch(
await dispatch(
@@ -816,6 +816,7 @@ export const actions = {
@@ -816,6 +816,7 @@ export const actions = {
},
},
{ root: true }
{ root: true }
);
);
 
offset += limit;
} while (rootGetters[`${type}/all`].length < rootGetters[`${type}/lastMeta`].page.total);
} while (rootGetters[`${type}/all`].length < rootGetters[`${type}/lastMeta`].page.total);
},
},
Loading