Polish before Release 2 (#3723)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
parent
67d7d8467e
commit
4453482d93
21 changed files with 201 additions and 154 deletions
|
|
@ -239,6 +239,12 @@ export class SideNavComponent implements OnInit {
|
|||
}
|
||||
|
||||
async reorderDrop($event: CdkDragDrop<any, any, SideNavStream>) {
|
||||
// Don't allow dropping on non SideNav items
|
||||
const fixedSideNavItems = 3;
|
||||
if ($event.currentIndex < fixedSideNavItems) {
|
||||
return;
|
||||
}
|
||||
|
||||
const stream = $event.item.data;
|
||||
// Offset the home, back, and customize button
|
||||
this.navService.updateSideNavStreamPosition(stream.name, stream.id, stream.order, $event.currentIndex - 3).subscribe({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue