mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-22 14:41:04 +01:00
hide runner response
This commit is contained in:
parent
dce96e0f13
commit
f24038931e
@ -6,6 +6,7 @@ import { runCollectionFolder, cancelRunnerExecution } from 'providers/ReduxStore
|
|||||||
import { resetCollectionRunner } from 'providers/ReduxStore/slices/collections';
|
import { resetCollectionRunner } from 'providers/ReduxStore/slices/collections';
|
||||||
import { findItemInCollection, getTotalRequestCountInCollection } from 'utils/collections';
|
import { findItemInCollection, getTotalRequestCountInCollection } from 'utils/collections';
|
||||||
import { IconRefresh, IconCircleCheck, IconCircleX, IconCheck, IconX, IconRun } from '@tabler/icons';
|
import { IconRefresh, IconCircleCheck, IconCircleX, IconCheck, IconX, IconRun } from '@tabler/icons';
|
||||||
|
import { IconRefresh, IconCircleCheck, IconCircleX, IconCheck, IconX, IconRun,IconEyeOff } from '@tabler/icons';
|
||||||
import slash from 'utils/common/slash';
|
import slash from 'utils/common/slash';
|
||||||
import ResponsePane from './ResponsePane';
|
import ResponsePane from './ResponsePane';
|
||||||
import StyledWrapper from './StyledWrapper';
|
import StyledWrapper from './StyledWrapper';
|
||||||
@ -183,10 +184,19 @@ export default function RunnerResults({ collection }) {
|
|||||||
{item.status !== 'error' && item.status !== 'completed' ? (
|
{item.status !== 'error' && item.status !== 'completed' ? (
|
||||||
<IconRefresh className="animate-spin ml-1" size={18} strokeWidth={1.5} />
|
<IconRefresh className="animate-spin ml-1" size={18} strokeWidth={1.5} />
|
||||||
) : item.responseReceived?.status ? (
|
) : item.responseReceived?.status ? (
|
||||||
|
|
||||||
|
selectedItem && JSON.stringify(item) === JSON.stringify(selectedItem) ? (
|
||||||
|
<span className="text-xs link cursor-pointer ml-2" onClick={() => setSelectedItem(null)}>
|
||||||
|
<IconEyeOff size={20} strokeWidth={1.5} />
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
|
||||||
<span className="text-xs link cursor-pointer" onClick={() => setSelectedItem(item)}>
|
<span className="text-xs link cursor-pointer" onClick={() => setSelectedItem(item)}>
|
||||||
(<span className="mr-1">{item.responseReceived?.status}</span>
|
(<span className="mr-1">{item.responseReceived?.status}</span>
|
||||||
<span>{item.responseReceived?.statusText}</span>)
|
<span>{item.responseReceived?.statusText}</span>)
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
)
|
||||||
) : (
|
) : (
|
||||||
<span className="danger text-xs cursor-pointer" onClick={() => setSelectedItem(item)}>
|
<span className="danger text-xs cursor-pointer" onClick={() => setSelectedItem(item)}>
|
||||||
(request failed)
|
(request failed)
|
||||||
@ -265,6 +275,9 @@ export default function RunnerResults({ collection }) {
|
|||||||
<IconCircleX className="test-failure" size={20} strokeWidth={1.5} />
|
<IconCircleX className="test-failure" size={20} strokeWidth={1.5} />
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
<span className="text-xs link cursor-pointer ml-2" onClick={() => setSelectedItem(null)}>
|
||||||
|
<IconEyeOff size={20} strokeWidth={1.5} />
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{/* <div className='px-3 mb-4 font-medium'>{selectedItem.relativePath}</div> */}
|
{/* <div className='px-3 mb-4 font-medium'>{selectedItem.relativePath}</div> */}
|
||||||
<ResponsePane item={selectedItem} collection={collection} />
|
<ResponsePane item={selectedItem} collection={collection} />
|
||||||
|
Loading…
Reference in New Issue
Block a user