Skip to content

Conversation

@Weyland
Copy link

@Weyland Weyland commented Mar 28, 2025

Introduce a page limit setting that is respected by all datatables.

Additionally fixed a Bootstrap grid layout thing.

Oh, and you can show All results in a table now. Something that would cause some load on the server, up to you if you want to keep it or not. I can remove it again.

Comment on lines +137 to +144

<script>
// Inject the page limit value with fallback to 10 if not set.
//
// This is required as `seat.js` uses this variable, with their own fallback, just in case.
var pageLength = {{ setting('page_limit') ?? 10 }};
</script>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally I could have used this variable directly in seat.js but since it's not a blade template, that wasn't possible. I'd love to have another look and see if there is a better way to solve this. Could use some guidance on doing so but I think I can manage that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will have a think about that... iirc there is elsewhere that profile info is added to the views, but cannot remember where at the moment.

@Crypta-Eve
Copy link
Member

@Weyland can you resolve the merge conflicts, then I will include with the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants