fix: openapi button add download attribute

This commit is contained in:
Roman Hotsiy 2017-04-30 14:21:29 +03:00
parent 6edbbe7b0c
commit 583c5719db
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -2,7 +2,7 @@
<h1>{{info.title}} <span class="api-info-version">({{info.version}})</span></h1>
<p class="download-openapi" *ngIf="specUrl">
Download OpenAPI (fka Swagger) specification:
<a class="openapi-button" target="_blank" attr.href='{{specUrl}}'> Download </a>
<a class="openapi-button" download target="_blank" attr.href='{{specUrl}}'> Download </a>
</p>
<p>
<!-- TODO: create separate components for contact and license ? -->