Limit the number of channels displayed on the index page
This commit is contained in:
parent
beb99c5632
commit
aedd0df228
5 changed files with 17 additions and 3 deletions
|
|
@ -41,6 +41,10 @@ export default class WebConfiguration {
|
|||
getCacheTTL() {
|
||||
return this.config.cacheTTL;
|
||||
}
|
||||
|
||||
getMaxIndexEntries() {
|
||||
return this.config.maxIndexEntries;
|
||||
}
|
||||
}
|
||||
|
||||
WebConfiguration.fromOldConfig = function (oldConfig) {
|
||||
|
|
@ -70,5 +74,7 @@ WebConfiguration.fromOldConfig = function (oldConfig) {
|
|||
|
||||
config.cacheTTL = oldConfig.get('http.max-age');
|
||||
|
||||
config.maxIndexEntries = oldConfig.get('http.index.max-entries');
|
||||
|
||||
return new WebConfiguration(config);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue