diff --git a/desktop/core/src/desktop/js/reactComponents/FileChooser/FileChooserModal/FileChooserModal.tsx b/desktop/core/src/desktop/js/reactComponents/FileChooser/FileChooserModal/FileChooserModal.tsx index 1fa8ec54ded..2c064a790e1 100644 --- a/desktop/core/src/desktop/js/reactComponents/FileChooser/FileChooserModal/FileChooserModal.tsx +++ b/desktop/core/src/desktop/js/reactComponents/FileChooser/FileChooserModal/FileChooserModal.tsx @@ -16,7 +16,7 @@ import React, { useState, useEffect } from 'react'; import Modal from 'antd/lib/modal/Modal'; -import { Col, Menu, Row, Spin } from 'antd'; +import { Col, Menu, Row, Spin, Button } from 'antd'; import HdfsIcon from '../../../components/icons/HdfsIcon'; import S3Icon from '../../../components/icons/S3Icon'; @@ -124,10 +124,20 @@ const FileChooserModal: React.FC = ({ show, onCancel, title, okText } - + e.stopPropagation()}> + + + + + + + + + + diff --git a/desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx b/desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx index 9f58af7c21f..505c52940ea 100644 --- a/desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx +++ b/desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx @@ -92,102 +92,94 @@ const PathBrowser: React.FC = ({ breadcrumbs, handleFilePathCh if (breadcrumbs) { return ( - e.stopPropagation()}> - - {!isEditMode ? ( -
-
- {icons[extractFileSystem(breadcrumbs[0].label)]} -
-
- {breadcrumbs.length <= 3 ? ( - breadcrumbs.map((item: BreadcrumbData, index: number) => { - return ( - <> - - {index != breadcrumbs.length - 1 ? ( - - ) : ( - <> - )} - - ); - }) - ) : ( - <> - - - - - - - - - - - )} -
- + <> + {!isEditMode ? ( +
+
+ {icons[extractFileSystem(breadcrumbs[0].label)]}
- ) : ( -
- { - handleFilePathChange((customPath.target as HTMLInputElement).value); - }} - className="hue-path-browser__input" - autoFocus - > +
+ {breadcrumbs.length <= 3 ? ( + breadcrumbs.map((item: BreadcrumbData, index: number) => { + return ( + <> + + {index != breadcrumbs.length - 1 ? ( + + ) : ( + <> + )} + + ); + }) + ) : ( + <> + + + + + + + + + + + )}
- )} - - - - - - - - + +
+ ) : ( +
+ { + handleFilePathChange((customPath.target as HTMLInputElement).value); + }} + className="hue-path-browser__input" + autoFocus + > +
+ )} + ); } };