Skip to content

Commit

Permalink
feat(backend): config param for page limit
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Aug 17, 2023
1 parent f1a016d commit 561a82d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/backend/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ pub struct FrontendConfig {
/// The height of the right section of an item's details page in pixels.
#[setting(default = 300)]
pub item_details_height: u32,
/// The number of items to display in a list view.
#[setting(default = 20)]
pub list_limit: u32,
}

#[derive(Debug, Serialize, Deserialize, Clone, Config)]
Expand Down
5 changes: 5 additions & 0 deletions docs/includes/backend-config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ export interface FrontendConfig {
* @default 300
*/
item_details_height: number;
/**
* The number of items to display in a list view.
* @default 20
*/
list_limit: number;
}

export interface IntegrationConfig {
Expand Down

0 comments on commit 561a82d

Please sign in to comment.