@@ -465,15 +465,17 @@ export const ProjectNavigationSidebar = ({ storageRules, konnectSyncEnabled }: P
465465 </ div >
466466 </ SearchField >
467467 { isProjectTabActive ? (
468- < Button
469- aria-label = "Create new Project"
470- onPress = { ( ) => setIsNewProjectModalOpen ( true ) }
471- isDisabled = { projects . length === 0 }
472- className = "flex h-full items-center justify-center gap-1 rounded-xs px-2 text-sm text-(--color-font) ring-1 ring-transparent transition-all hover:bg-(--hl-xs) focus:ring-(--hl-md) focus:ring-inset aria-pressed:bg-(--hl-sm)"
473- >
474- < Icon icon = "plus" className = "h-2.5 w-2.5" />
475- < span > New Project</ span >
476- </ Button >
468+ ! isScratchPad && (
469+ < Button
470+ aria-label = "Create new Project"
471+ onPress = { ( ) => setIsNewProjectModalOpen ( true ) }
472+ isDisabled = { projects . length === 0 }
473+ className = "flex h-full items-center justify-center gap-1 rounded-xs px-2 text-sm text-(--color-font) ring-1 ring-transparent transition-all hover:bg-(--hl-xs) focus:ring-(--hl-md) focus:ring-inset aria-pressed:bg-(--hl-sm)"
474+ >
475+ < Icon icon = "plus" className = "h-2.5 w-2.5" />
476+ < span > New Project</ span >
477+ </ Button >
478+ )
477479 ) : syncing ? (
478480 < Button
479481 aria-label = "Cancel sync"
@@ -539,16 +541,15 @@ export const ProjectNavigationSidebar = ({ storageRules, konnectSyncEnabled }: P
539541 ! isScratchPad && navigate ( `/organization/${ organizationId } /project/${ docId } ` ) ;
540542 } else if ( item . kind === 'workspace' ) {
541543 toggleProjectOrWorkspace ( docId ) ;
542- ! isScratchPad &&
543- tabNavigate (
544- {
545- organization : organizationId ,
546- project : item . project ,
547- workspace : item . doc ,
548- item : item . doc ,
549- } ,
550- { withTab : isPrimaryClickModifier ( e ) , shouldNavigate : true , searchParams } ,
551- ) ;
544+ tabNavigate (
545+ {
546+ organization : organizationId ,
547+ project : item . project ,
548+ workspace : item . doc ,
549+ item : item . doc ,
550+ } ,
551+ { withTab : isPrimaryClickModifier ( e ) , shouldNavigate : true , searchParams } ,
552+ ) ;
552553 } else if ( item . kind === 'collectionChild' ) {
553554 if ( models . requestGroup . isRequestGroup ( doc ) ) {
554555 toggleRequestGroup ( doc ) ;
0 commit comments