keep apiName like they are
This commit is contained in:
parent
117cf7e255
commit
3b66b1b08c
|
|
@ -84,6 +84,20 @@
|
|||
color: var(--vscode-charts-blue);
|
||||
}
|
||||
|
||||
.action-green {
|
||||
display: inline;
|
||||
flex: none;
|
||||
padding-left: 5px;
|
||||
color: var(--vscode-charts-green);
|
||||
}
|
||||
|
||||
.action-red {
|
||||
display: inline;
|
||||
flex: none;
|
||||
padding-left: 5px;
|
||||
color: var(--vscode-charts-red);
|
||||
}
|
||||
|
||||
.action-list-show-all {
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
|
|
|
|||
|
|
@ -97,12 +97,14 @@ export const renderAction = (
|
|||
time = 'Timed out';
|
||||
else if (!isLive)
|
||||
time = '-';
|
||||
|
||||
return <>
|
||||
<div className='action-title' title={action.apiName}>
|
||||
{action.class !== 'APIRequestContext' && <span>{action.apiName}</span>}
|
||||
{action.class === 'APIRequestContext' && <span className='action-selector'>{action.params.method}</span>}
|
||||
<span>{action.apiName}</span>
|
||||
{locator && <div className='action-selector' title={locator}>{locator}</div>}
|
||||
{action.method === 'goto' && action.params.url && <div className='action-url' title={action.params.url}>{action.params.url}</div>}
|
||||
{action.class === 'APIRequestContext' && action.params.method && <span className='action-selector'>{action.params.method}</span>}
|
||||
{action.class === 'APIRequestContext' && action.result?.response?.status && <span className={action.result.response.status < 201 ? 'action-green' : action.result.response.status < 500 ? 'action-url' : 'action-red'}>{action.result.response.status}</span>}
|
||||
{action.class === 'APIRequestContext' && action.params.url && <div className='action-url' title={action.params.url}>{excludeOrigin(action.params.url)}</div>}
|
||||
</div>
|
||||
{(showDuration || showBadges) && <div className='spacer'></div>}
|
||||
|
|
|
|||
Loading…
Reference in a new issue