Skip to content

Commit

Permalink
Merge pull request #128 from bento-platform/features/loading_status
Browse files Browse the repository at this point in the history
Added loading status to beacon search
  • Loading branch information
SanjeevLakhwani authored Nov 29, 2023
2 parents 6049fb3 + 34f4162 commit 39f0c36
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 @@ -133,6 +133,8 @@ const BeaconQueryUi = () => {
);
};

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

return (
<div style={WRAPPER_STYLE}>
<BeaconSearchResults />
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 39f0c36

Please sign in to comment.