0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 05:12:57 -05:00

Add clip download support

This commit is contained in:
dragongoose 2023-10-24 18:52:50 -04:00
parent 9c332221fe
commit b93efbc4b5
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
2 changed files with 13 additions and 2 deletions

View file

@ -35,6 +35,7 @@ import {
BiHeartFill,
FaShareAlt,
IoCloseSharp,
MdDownloadRound,
IoPerson
} from 'oh-vue-icons/icons'
@ -53,6 +54,7 @@ addIcons(
BiHeartFill,
FaShareAlt,
IoCloseSharp,
MdDownloadRound,
IoPerson
)

View file

@ -49,6 +49,7 @@ export default {
status,
videoOptions,
time: ref(0),
srcUrl,
shareModalVisible: ref(false)
}
},
@ -128,9 +129,17 @@ export default {
</p>
</div>
<button @click="toggleShareModal" class="px-2 py-1.5 rounded-lg bg-purple">
<v-icon name="fa-share-alt"></v-icon>
<div class="space-x-1">
<a :href="srcUrl" download>
<button class="px-2 py-1.5 rounded-lg bg-purple">
<v-icon name="md-download-round"></v-icon>
</button>
</a>
<button @click="toggleShareModal" class="px-2 py-1.5 rounded-lg bg-purple">
<v-icon name="fa-share-alt"></v-icon>
</button>
</div>
</div>
</div>