Skip to content
Snippets Groups Projects
Commit 3da3b232 authored by farbod's avatar farbod Committed by Marcus Eibrink-Lunzenauer
Browse files

block sorting improvement, fixes #466

parent c765e9eb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment