Small cleanup
This commit is contained in:
parent
a3b0c08e17
commit
db3d228610
1 changed files with 2 additions and 1 deletions
|
|
@ -240,7 +240,8 @@ export class SideNavComponent implements OnInit {
|
||||||
|
|
||||||
async reorderDrop($event: CdkDragDrop<any, any, SideNavStream>) {
|
async reorderDrop($event: CdkDragDrop<any, any, SideNavStream>) {
|
||||||
// Don't allow dropping on non SideNav items
|
// Don't allow dropping on non SideNav items
|
||||||
if ($event.currentIndex < 3) {
|
const fixedSideNavItems = 3;
|
||||||
|
if ($event.currentIndex < fixedSideNavItems) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue