Skip to content

Commit

Permalink
feat: add download action
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed May 9, 2021
1 parent 1c03360 commit 3677f1f
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions components/pages/posts/content/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@
</template>
</template>

<a :href="mediaResolutionChooser.url" class="link" download>
<SearchIcon class="w-5 h-5 icon" />
<a
:href="mediaResolutionChooser.url"
target="_blank"
download
title="Download"
class="link"
>
<DownloadIcon class="w-5 h-5 icon" />
</a>
</div>

Expand Down Expand Up @@ -168,10 +174,15 @@

<script>
import { mapGetters, mapActions } from 'vuex'
import { ExternalLinkIcon, TagIcon, SearchIcon } from 'vue-feather-icons'
import {
ExternalLinkIcon,
TagIcon,
SearchIcon,
DownloadIcon,
} from 'vue-feather-icons'
export default {
components: { ExternalLinkIcon, TagIcon, SearchIcon },
components: { ExternalLinkIcon, TagIcon, SearchIcon, DownloadIcon },
props: {
postData: {
Expand Down

0 comments on commit 3677f1f

Please sign in to comment.