mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
Changed Clear button to Reset
This commit is contained in:
1 parent
f786cb6ead
commit
c00e4b47c0
1 file changed
+9
-11
@@ -282,17 +282,15 @@ export const LogPage: NextPage = () => {
|
||||
/>
|
||||
)}
|
||||
<div className="flex flex-row gap-x-2 justify-end p-2">
|
||||
{editorValue && (
|
||||
<Button
|
||||
type="text"
|
||||
onClick={() => {
|
||||
setEditorValue('')
|
||||
setEditorId(uuidv4())
|
||||
}}
|
||||
>
|
||||
Clear
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
type="text"
|
||||
onClick={() => {
|
||||
setEditorValue(genDefaultQuery(table))
|
||||
setEditorId(uuidv4())
|
||||
}}
|
||||
>
|
||||
Reset
|
||||
</Button>
|
||||
<Button type={editorValue ? 'secondary' : 'text'} onClick={handleEditorSubmit}>
|
||||
Run
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user