You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2022/04/12 21:49:41 UTC
[airflow] branch main updated: Hide pagination when data is a single page (#22963)
This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new de7a92a73b Hide pagination when data is a single page (#22963)
de7a92a73b is described below
commit de7a92a73b824642602c85a05f588a1634658af6
Author: Brent Bovenzi <br...@gmail.com>
AuthorDate: Tue Apr 12 16:49:35 2022 -0500
Hide pagination when data is a single page (#22963)
---
airflow/www/static/js/tree/Table.jsx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/airflow/www/static/js/tree/Table.jsx b/airflow/www/static/js/tree/Table.jsx
index 06eb84cad4..aef91ce905 100644
--- a/airflow/www/static/js/tree/Table.jsx
+++ b/airflow/www/static/js/tree/Table.jsx
@@ -146,6 +146,7 @@ const Table = ({
})}
</Tbody>
</ChakraTable>
+ {totalEntries > data.length && (
<Flex alignItems="center" justifyContent="flex-start" my={4}>
<IconButton
variant="ghost"
@@ -169,6 +170,7 @@ const Table = ({
{totalEntries}
</Text>
</Flex>
+ )}
</>
);
};