Commit 5fa274d9 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

add sharing functionality to RecordingPage

parent 24209441
......@@ -10,6 +10,7 @@
<app-like collection="recordings" :id="recording.id"/>
<app-download look="transparent" class="ml-3" :name="$t('recording_page.download_name')"
v-if="trackDownloadUrls" :files="trackDownloadUrls"/>
<app-share look="transparent" class="ml-3" :name="recording.title" :payload="shareData"/>
</div>
</app-field>
<app-auto-grid :sizes="{ md: [2, 1], lg: [2, 1], xl: [2, 1] }" :gap-modifier="2">
......@@ -79,6 +80,14 @@
omit: this.recording.id,
is_available: 1
}
},
shareData () {
const { title, description } = this.recording
return {
title,
text: description !== title ? description : null,
url: window.location.origin + this.$route.path
}
}
},
inject: ['dataSources', 'env']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment