diff --git a/resources/vue/components/courseware/CoursewareManagerContainer.vue b/resources/vue/components/courseware/CoursewareManagerContainer.vue index 26ae1c5bda52035cd8027de3f45cb4aa7b0dd016..ddb2bbb5f186562332cf99f93182baf5a4569e53 100755 --- a/resources/vue/components/courseware/CoursewareManagerContainer.vue +++ b/resources/vue/components/courseware/CoursewareManagerContainer.vue @@ -141,6 +141,13 @@ export default { } }); + // If there are more that one section and only one block, + // we make sotring of that block possible, by just assuming that there are 2 blocks. + // By doing this, we only provide the sorting feature when there are more than one section (section). + if (this.sectionsWithBlocksCurrentState.length > 1 && blocks == 1) { + blocks++; + } + return blocks; } }