You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2022/01/25 20:21:46 UTC

[superset] branch sqllab-msg created (now 6a67456)

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a change to branch sqllab-msg
in repository https://gitbox.apache.org/repos/asf/superset.git.


      at 6a67456  save

This branch includes the following new commits:

     new 6a67456  save

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[superset] 01/01: save

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch sqllab-msg
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 6a674567bfbb7b17bee19423869e8fde74321648
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue Jan 25 12:35:53 2022 -0500

    save
---
 superset-frontend/src/components/DatabaseSelector/index.tsx | 4 +++-
 superset-frontend/src/components/TableSelector/index.tsx    | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/components/DatabaseSelector/index.tsx b/superset-frontend/src/components/DatabaseSelector/index.tsx
index e744af9..f939e66 100644
--- a/superset-frontend/src/components/DatabaseSelector/index.tsx
+++ b/superset-frontend/src/components/DatabaseSelector/index.tsx
@@ -23,6 +23,7 @@ import { Select } from 'src/components';
 import Label from 'src/components/Label';
 import { FormLabel } from 'src/components/Form';
 import RefreshLabel from 'src/components/RefreshLabel';
+import { useToasts } from 'src/components/MessageToasts/withToasts';
 
 const DatabaseSelectorWrapper = styled.div`
   ${({ theme }) => `
@@ -144,7 +145,7 @@ export default function DatabaseSelector({
     schema ? { label: schema, value: schema } : undefined,
   );
   const [refresh, setRefresh] = useState(0);
-
+  const { addInfoToast } = useToasts();
   const loadDatabases = useMemo(
     () =>
       async (
@@ -224,6 +225,7 @@ export default function DatabaseSelector({
           }
           setSchemaOptions(options);
           setLoadingSchemas(false);
+          addInfoToast('List refreshed');
         })
         .catch(() => {
           setLoadingSchemas(false);
diff --git a/superset-frontend/src/components/TableSelector/index.tsx b/superset-frontend/src/components/TableSelector/index.tsx
index 171c817..239e7f8 100644
--- a/superset-frontend/src/components/TableSelector/index.tsx
+++ b/superset-frontend/src/components/TableSelector/index.tsx
@@ -178,6 +178,7 @@ const TableSelector: FunctionComponent<TableSelectorProps> = ({
   }, [database]);
 
   useEffect(() => {
+    console.log('hi');
     if (currentDatabase && currentSchema) {
       setLoadingTables(true);
       const encodedSchema = encodeURIComponent(currentSchema);