diff --git a/src/components/OpenFileDialog/OpenFileDialog.js b/src/components/OpenFileDialog/OpenFileDialog.js index 13e121d10..78fdc66b8 100644 --- a/src/components/OpenFileDialog/OpenFileDialog.js +++ b/src/components/OpenFileDialog/OpenFileDialog.js @@ -11,6 +11,7 @@ import { DataTableRow, DataTableCell, DataTableColumnHeader, + DataTableToolbar, NoticeBox, CircularLoader, Button, @@ -230,68 +231,6 @@ export const OpenFileDialog = ({ {getTranslatedString(type, 'modalTitle')} -
-
- { - setNameFilterValue(value) - - clearTimeout(searchTimeout) - setSearchTimeout( - setTimeout( - () => - setState({ - page: 1, - filters: { - ...filters, - searchTerm: value, - }, - }), - 200 - ) - ) - }} - /> -
- {filterVisTypes?.length && ( -
- - setState({ - page: 1, - filters: { - ...filters, - visType: value, - }, - }) - } - /> -
- )} -
- - setState({ - page: 1, - filters: { - ...filters, - createdBy: value, - }, - }) - } - /> -
- {!isEqual(filters, defaultFilters) && ( - - )} -
{error ? (
+ +
+
+ { + setNameFilterValue(value) + + clearTimeout(searchTimeout) + setSearchTimeout( + setTimeout( + () => + setState({ + page: 1, + filters: { + ...filters, + searchTerm: + value, + }, + }), + 200 + ) + ) + }} + /> +
+ {filterVisTypes?.length && ( +
+ + setState({ + page: 1, + filters: { + ...filters, + visType: value, + }, + }) + } + /> +
+ )} +
+ + setState({ + page: 1, + filters: { + ...filters, + createdBy: value, + }, + }) + } + /> +
+ {!isEqual(filters, defaultFilters) && ( + + )} +
+
@@ -359,7 +367,10 @@ export const OpenFileDialog = ({ AOTypeMap[type].apiEndpoint ].length > 0 && ( - +
@@ -420,17 +431,19 @@ export const OpenFileDialog = ({ )} + + {data?.files[AOTypeMap[type].apiEndpoint] + .length > 0 && ( +
+ +
+ )} +
- {data?.files[AOTypeMap[type].apiEndpoint].length > - 0 && ( -
- -
- )} )} diff --git a/src/components/OpenFileDialog/OpenFileDialog.styles.js b/src/components/OpenFileDialog/OpenFileDialog.styles.js index 0b55df8c9..c61af33ff 100644 --- a/src/components/OpenFileDialog/OpenFileDialog.styles.js +++ b/src/components/OpenFileDialog/OpenFileDialog.styles.js @@ -12,7 +12,6 @@ export const styles = css` .pagination-controls { width: 100%; - margin-top: ${spacers.dp12}; display: flex; justify-content: flex-end; } @@ -21,7 +20,6 @@ export const styles = css` display: flex; gap: ${spacers.dp4}; align-items: center; - margin-bottom: ${spacers.dp8}; } .search-field-container {