diff --git a/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration.tsx b/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration.tsx index 9957d16dd..da0dc8707 100644 --- a/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration.tsx +++ b/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration.tsx @@ -44,6 +44,7 @@ export interface CreateAccelerationProps { resetFlyout: () => void; databaseName?: string; tableName?: string; + refreshHandler?: () => void; } export const CreateAcceleration = ({ diff --git a/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration_button.tsx b/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration_button.tsx index a1cbd3a09..8a8724827 100644 --- a/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration_button.tsx +++ b/public/components/datasources/components/manage/accelerations/create_accelerations_flyout/create/create_acceleration_button.tsx @@ -62,9 +62,11 @@ export const CreateAccelerationButton = ({ } }, [directqueryLoadStatus]); - return ( + const createAccelerationBtn = ( {isLoading ? 'Creating acceleration' : 'Create acceleration'} ); + + return createAccelerationBtn; }; diff --git a/public/framework/datasources/direct_query_hook.tsx b/public/framework/datasources/direct_query_hook.tsx index f4776385e..a896a5395 100644 --- a/public/framework/datasources/direct_query_hook.tsx +++ b/public/framework/datasources/direct_query_hook.tsx @@ -74,6 +74,7 @@ export const useDirectQuery = () => { setLoadStatus(status); stopLoading(); } else if (status === DirectQueryLoadingStatus.FAILED) { + setLoadStatus(status); stopLoading(); const formattedError = formatError( '',