Tidy up
This commit is contained in:
Родитель
ccc9ed8b49
Коммит
cf50624e4e
|
@ -212,7 +212,7 @@ export class RemoteQueriesInterfaceManager {
|
|||
await this.downloadAllAnalysesResults(msg);
|
||||
break;
|
||||
case 'remoteQueryExportResults':
|
||||
await await commands.executeCommand('codeQL.exportVariantAnalysisResults');
|
||||
await commands.executeCommand('codeQL.exportVariantAnalysisResults');
|
||||
break;
|
||||
default:
|
||||
assertNever(msg);
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
import * as React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Button = styled.a`
|
||||
const Button = styled.button`
|
||||
color: var(--vscode-button-foreground);
|
||||
background-color: var(--vscode-button-background);
|
||||
&:hover {
|
||||
color: var(--vscode-button-foreground);
|
||||
text-decoration: none;
|
||||
background-color: var(--vscode-button-hoverBackground);
|
||||
}
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
border: 0;
|
||||
`;
|
||||
|
||||
const ExportButton = ({ text, onClick }: { text: string, onClick: () => void }) => (
|
||||
<Button className="monaco-button monaco-text-button" onClick={onClick}>
|
||||
<Button onClick={onClick}>
|
||||
{text}
|
||||
</Button>
|
||||
);
|
||||
|
|
|
@ -327,7 +327,7 @@ const AnalysesResults = ({
|
|||
totalResults={totalResults} />
|
||||
</Box>
|
||||
<Box>
|
||||
<ExportButton text="Export all" onClick={() => exportResults()}></ExportButton>
|
||||
<ExportButton text="Export all" onClick={exportResults}></ExportButton>
|
||||
</Box>
|
||||
</Box>
|
||||
<AnalysesResultsDescription
|
||||
|
|
Загрузка…
Ссылка в новой задаче