File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/renderer/components/command Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,19 @@ export function CommandMenu({
9595 onOpenChange ( false ) ;
9696 } ;
9797
98+ const handleNavigateToRecordings = ( ) => {
99+ const recordingsTab = tabs . find ( ( tab ) => tab . type === "recordings" ) ;
100+ if ( recordingsTab ) {
101+ setActiveTab ( recordingsTab . id ) ;
102+ } else {
103+ createTab ( {
104+ type : "recordings" ,
105+ title : "Recordings" ,
106+ } ) ;
107+ }
108+ onOpenChange ( false ) ;
109+ } ;
110+
98111 const handleCreateTask = ( ) => {
99112 onOpenChange ( false ) ;
100113 onCreateTask ?.( ) ;
@@ -170,6 +183,14 @@ export function CommandMenu({
170183 < MicrophoneIcon className = "mr-3 h-4 w-4 text-gray-11" />
171184 < Text size = "2" > Go to recordings</ Text >
172185 </ Command . Item >
186+
187+ < Command . Item
188+ value = "Go to recordings"
189+ onSelect = { handleNavigateToRecordings }
190+ >
191+ < MicrophoneIcon className = "mr-3 h-4 w-4 text-gray-11" />
192+ < Text size = "2" > Go to recordings</ Text >
193+ </ Command . Item >
173194 </ Command . Group >
174195
175196 { tasks . length > 0 && (
You can’t perform that action at this time.
0 commit comments