This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,14 @@ function RequestResponseRenderer<T extends TSocketEndpointNames>({
5757 return (
5858 < div >
5959 < div className = { styles . btnWrapper } >
60- < Button color = 'primary' disabled = { disableSendRequest ( auth ) } onClick = { handleClick } >
60+ < Button
61+ color = 'primary'
62+ disabled = { disableSendRequest ( auth ) || reqData === '' }
63+ onClick = { handleClick }
64+ >
6165 Send Request
6266 </ Button >
63- < Button color = 'secondary' onClick = { handleClear } >
67+ < Button color = 'secondary' disabled = { reqData === '' } onClick = { handleClear } >
6468 Clear
6569 </ Button >
6670 </ div >
Original file line number Diff line number Diff line change @@ -70,10 +70,14 @@ function SubscribeRenderer<T extends TSocketSubscribableEndpointNames>({
7070 return (
7171 < div >
7272 < div className = { styles . btnWrapper } >
73- < Button color = 'primary' disabled = { disableSendRequest ( auth ) } onClick = { handleClick } >
73+ < Button
74+ color = 'primary'
75+ disabled = { disableSendRequest ( auth ) || reqData === '' }
76+ onClick = { handleClick }
77+ >
7478 Send Request
7579 </ Button >
76- < Button color = 'secondary' onClick = { handleClear } >
80+ < Button color = 'secondary' disabled = { reqData === '' } onClick = { handleClear } >
7781 Clear
7882 </ Button >
7983 </ div >
You can’t perform that action at this time.
0 commit comments