Skip to content

Commit

Permalink
Implement the refresh button
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Mar 13, 2024
1 parent 3369620 commit a59b0b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,16 @@ exports[`Data Connection Page test Renders Prometheus data connection page with
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<button
class="euiButton euiButton--primary"
class="euiButton euiButton--primary euiButton-isDisabled"
disabled=""
type="button"
>
<span
class="euiButtonContent euiButton__content"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium euiButtonContent__spinner"
/>
<span
class="euiButton__text"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,17 @@ export const AccelerationTable = () => {
}
}, [loadStatus]);

const handleRefresh = () => {
console.log('Initiating refresh...');
setIsRefreshing(true);
loadAccelerations('mys3');
};

const RefreshButton = () => {
// TODO: Implement logic for refreshing acceleration
return (
<>
<EuiButton onClick={() => console.log('clicked on refresh button')}>Refresh</EuiButton>
</>
<EuiButton onClick={handleRefresh} isLoading={isRefreshing}>
Refresh
</EuiButton>
);
};

Expand Down

0 comments on commit a59b0b5

Please sign in to comment.