Skip to content

Commit

Permalink
acceleration create button update
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
  • Loading branch information
ps48 committed Mar 25, 2024
1 parent c03c676 commit 7c303c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface CreateAccelerationProps {
resetFlyout: () => void;
databaseName?: string;
tableName?: string;
refreshHandler?: () => void;
}

export const CreateAcceleration = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ export const CreateAccelerationButton = ({
}
}, [directqueryLoadStatus]);

return (
const createAccelerationBtn = (
<EuiButton onClick={createAcceleration} fill isLoading={isLoading}>
{isLoading ? 'Creating acceleration' : 'Create acceleration'}
</EuiButton>
);

return createAccelerationBtn;
};
1 change: 1 addition & 0 deletions public/framework/datasources/direct_query_hook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const useDirectQuery = () => {
setLoadStatus(status);
stopLoading();
} else if (status === DirectQueryLoadingStatus.FAILED) {
setLoadStatus(status);
stopLoading();
const formattedError = formatError(
'',
Expand Down

0 comments on commit 7c303c2

Please sign in to comment.