Skip to content

Commit

Permalink
Added loading status to beacon search
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjeevLakhwani committed Nov 29, 2023
1 parent 64ee085 commit 7173dab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/components/Beacon/BeaconQueryUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ const BeaconQueryUi = () => {
</Tooltip>
);
};

const isFetchingBeaconQuery = useAppSelector((state) => state.beaconQuery.isFetchingQueryResponse);

return (
<div style={WRAPPER_STYLE}>
Expand Down Expand Up @@ -173,7 +175,7 @@ const BeaconQueryUi = () => {
<Row>
<Col span={24}>
<div style={BUTTON_AREA_STYLE}>
<Button type="primary" htmlType="submit" style={BUTTON_STYLE}>
<Button type="primary" htmlType="submit" loading={isFetchingBeaconQuery} style={BUTTON_STYLE}>
{td('Search Beacon')}
</Button>
<Button onClick={handleClearForm} style={BUTTON_STYLE}>
Expand Down

0 comments on commit 7173dab

Please sign in to comment.