mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
fix: download button downloads index.html instead of spec with CLI
fixes #594
This commit is contained in:
parent
23559fbece
commit
334f9047a8
|
@ -81,7 +81,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
|
||||||
<DownloadButton
|
<DownloadButton
|
||||||
download={downloadFilename}
|
download={downloadFilename}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={downloadLink || '#'}
|
href={downloadLink}
|
||||||
onClick={this.handleDownloadClick}
|
onClick={this.handleDownloadClick}
|
||||||
>
|
>
|
||||||
Download
|
Download
|
||||||
|
|
|
@ -20,6 +20,7 @@ export const DownloadButton = styled.a`
|
||||||
padding: 4px 8px 4px;
|
padding: 4px 8px 4px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
${extensionsHook('DownloadButton')};
|
${extensionsHook('DownloadButton')};
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user