mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-03 23:51:44 +01:00
Feedback when copying playlist link (#1660)
* Show message when copying playlist URL * Move toast to after writing to clipboard
This commit is contained in:
parent
1fd36582ce
commit
065fc49db0
@ -100,12 +100,18 @@ export default Vue.extend({
|
||||
switch (method) {
|
||||
case 'copyYoutube':
|
||||
navigator.clipboard.writeText(youtubeUrl)
|
||||
this.showToast({
|
||||
message: this.$t('Share.YouTube URL copied to clipboard')
|
||||
})
|
||||
break
|
||||
case 'openYoutube':
|
||||
this.openExternalLink(youtubeUrl)
|
||||
break
|
||||
case 'copyInvidious':
|
||||
navigator.clipboard.writeText(invidiousUrl)
|
||||
this.showToast({
|
||||
message: this.$t('Share.Invidious URL copied to clipboard')
|
||||
})
|
||||
break
|
||||
case 'openInvidious':
|
||||
this.openExternalLink(invidiousUrl)
|
||||
@ -131,6 +137,7 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
...mapActions([
|
||||
'showToast',
|
||||
'openExternalLink'
|
||||
])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user