diff --git a/src/components/ApiInfo/ApiInfo.tsx b/src/components/ApiInfo/ApiInfo.tsx index 712a8807..70767714 100644 --- a/src/components/ApiInfo/ApiInfo.tsx +++ b/src/components/ApiInfo/ApiInfo.tsx @@ -28,9 +28,9 @@ export class ApiInfo extends React.Component { gotoTextColor: '#0084CE' }; - handleHoverState = () => {this.setState({gotoIconColor: '#339DD8', gotoTextColor: '#339DD8'})}; - handleActiveState = () => {this.setState({gotoIconColor: '#00639B', gotoTextColor: '#00639B'})}; - handleLeaveState = () => {this.setState({gotoIconColor: '#0084CE', gotoTextColor: '#0084CE'})}; + handleHoverState = () => { this.setState({ gotoIconColor: '#339DD8', gotoTextColor: '#339DD8' }) }; + handleActiveState = () => { this.setState({ gotoIconColor: '#00639B', gotoTextColor: '#00639B' }) }; + handleLeaveState = () => { this.setState({ gotoIconColor: '#0084CE', gotoTextColor: '#0084CE' }) }; handleDownloadClick = e => { if (!e.target.href) { @@ -43,7 +43,7 @@ export class ApiInfo extends React.Component { const { info, externalDocs } = store.spec; const hideDownloadButton = store.options.hideDownloadButton; - const downloadFilename = info.downloadFileName; + const downloadFilename = info.downloadFileName == undefined ? info.title : info.downloadFileName; const downloadLink = info.downloadLink; const license = @@ -87,39 +87,39 @@ export class ApiInfo extends React.Component { -
+
{info.title} {version}
- {hasAdditionalDoc?
+ {hasAdditionalDoc ?
- + - + fill={this.state.gotoIconColor} /> + - + Additional Docs -
:null} +
: null} {!hideDownloadButton && (

Download OpenAPI specification: Download