Skip to content

Commit

Permalink
Increase the max number of study chapters to 256.
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Nov 22, 2024
1 parent d73217b commit a93e4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/study/src/main/Study.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ case class Study(

object Study:

val maxChapters = Max(64)
val maxChapters = Max(256)

val previewNbMembers = 4
val previewNbChapters = 4
Expand Down
2 changes: 1 addition & 1 deletion ui/analyse/src/study/studyChapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class StudyChaptersCtrl {

sort = (ids: string[]) => this.send('sortChapters', ids);
toggleNewForm = () => {
if (this.newForm.isOpen() || this.list.size() < 64) this.newForm.toggle();
if (this.newForm.isOpen() || this.list.size() < 256) this.newForm.toggle();
else alert('You have reached the limit of 64 chapters per study. Please create a new study.');
};
loadFromServer = (chapters: ChapterPreviewFromServer[]) =>
Expand Down

0 comments on commit a93e4b9

Please sign in to comment.