chore: add track event to toggle sidebar switch (#8582)

close AF-1530
This commit is contained in:
JimmFly
2024-10-24 03:36:10 +00:00
parent 8cbb7195fc
commit 021587ffab
3 changed files with 8 additions and 1 deletions

View File

@@ -27,7 +27,9 @@ export function registerAffineLayoutCommands({
binding: '$mod+/',
},
run() {
track.$.navigationPanel.$.toggle();
track.$.navigationPanel.$.toggle({
type: appSidebarService.sidebar.open$.value ? 'collapse' : 'expand',
});
appSidebarService.sidebar.toggleSidebar();
},
})