@@ -286,9 +286,8 @@ const Content: React.FC<ContentProps> = ({
286
286
const handleOpenGraphClick = ( ) => {
287
287
const bloomUrl = process . env . BLOOM_URL ;
288
288
const uriCoded = userCredentials ?. uri . replace ( / : \d + $ / , '' ) ;
289
- const connectURL = `${ uriCoded ?. split ( '//' ) [ 0 ] } //${ userCredentials ?. userName } @${ uriCoded ?. split ( '//' ) [ 1 ] } :${
290
- userCredentials ?. port ?? '7687'
291
- } `;
289
+ const connectURL = `${ uriCoded ?. split ( '//' ) [ 0 ] } //${ userCredentials ?. userName } @${ uriCoded ?. split ( '//' ) [ 1 ] } :${ userCredentials ?. port ?? '7687'
290
+ } `;
292
291
const encodedURL = encodeURIComponent ( connectURL ) ;
293
292
const replacedUrl = bloomUrl ?. replace ( '{CONNECT_URL}' , encodedURL ) ;
294
293
window . open ( replacedUrl , '_blank' ) ;
@@ -298,10 +297,10 @@ const Content: React.FC<ContentProps> = ({
298
297
isLeftExpanded && isRightExpanded
299
298
? 'contentWithExpansion'
300
299
: isRightExpanded
301
- ? 'contentWithChatBot'
302
- : ! isLeftExpanded && ! isRightExpanded
303
- ? 'w-[calc(100%-128px)]'
304
- : 'contentWithDropzoneExpansion' ;
300
+ ? 'contentWithChatBot'
301
+ : ! isLeftExpanded && ! isRightExpanded
302
+ ? 'w-[calc(100%-128px)]'
303
+ : 'contentWithDropzoneExpansion' ;
305
304
306
305
const handleGraphView = ( ) => {
307
306
setOpenGraphView ( true ) ;
@@ -627,20 +626,20 @@ const Content: React.FC<ContentProps> = ({
627
626
</ div >
628
627
</ Typography >
629
628
</ div >
630
- { ! connectionStatus ? (
631
- < Button className = 'mr-2.5' onClick = { ( ) => setOpenConnection ( true ) } >
632
- { buttonCaptions . connectToNeo4j }
629
+ < div >
630
+ < Button className = 'mr-2.5' onClick = { openGraphEnhancementDialog } disabled = { ! connectionStatus } >
631
+ Graph Enhancement
633
632
</ Button >
634
- ) : (
635
- < div >
636
- < Button className = 'mr-2.5' onClick = { openGraphEnhancementDialog } >
637
- Graph Enhancement
633
+ { ! connectionStatus ? (
634
+ < Button className = 'mr-2.5' onClick = { ( ) => setOpenConnection ( true ) } >
635
+ { buttonCaptions . connectToNeo4j }
638
636
</ Button >
637
+ ) : (
639
638
< Button className = 'mr-2.5' onClick = { disconnect } >
640
639
{ buttonCaptions . disconnect }
641
640
</ Button >
642
- </ div >
643
- ) }
641
+ ) }
642
+ </ div >
644
643
</ Flex >
645
644
< FileTable
646
645
isExpanded = { isLeftExpanded && isRightExpanded }
@@ -654,9 +653,8 @@ const Content: React.FC<ContentProps> = ({
654
653
ref = { childRef }
655
654
> </ FileTable >
656
655
< Flex
657
- className = { `${
658
- ! isLeftExpanded && ! isRightExpanded ? 'w-[calc(100%-128px)]' : 'w-full'
659
- } p-2.5 absolute bottom-4 mt-1.5 self-start`}
656
+ className = { `${ ! isLeftExpanded && ! isRightExpanded ? 'w-[calc(100%-128px)]' : 'w-full'
657
+ } p-2.5 absolute bottom-4 mt-1.5 self-start`}
660
658
justifyContent = 'space-between'
661
659
flexDirection = 'row'
662
660
>
0 commit comments