Added toast to new share button
This commit is contained in:
parent
f31bf4f881
commit
ee1d8f3c8a
|
@ -17571,7 +17571,8 @@
|
|||
},
|
||||
"minimist": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
||||
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
|
||||
"dev": true
|
||||
},
|
||||
"schema-utils": {
|
||||
|
|
|
@ -2,6 +2,7 @@ import Vue from 'vue'
|
|||
|
||||
import FtIconButton from '../ft-icon-button/ft-icon-button.vue'
|
||||
import FtButton from '../ft-button/ft-button.vue'
|
||||
import FtToastEvents from '../ft-toast/ft-toast-events'
|
||||
|
||||
export default Vue.extend({
|
||||
name: 'FtShareButton',
|
||||
|
@ -59,6 +60,7 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
copyInvidious() {
|
||||
FtToastEvents.$emit('toast.open', "Invidious URL copied to clipboard")
|
||||
this.copy(this.invidiousURL)
|
||||
this.$refs.iconButton.toggleDropdown()
|
||||
},
|
||||
|
@ -69,6 +71,7 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
copyYoutube() {
|
||||
FtToastEvents.$emit('toast.open', "YouTube URL copied to clipboard")
|
||||
this.copy(this.youtubeURL)
|
||||
this.$refs.iconButton.toggleDropdown()
|
||||
},
|
||||
|
@ -79,6 +82,7 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
copyYoutubeEmbed() {
|
||||
FtToastEvents.$emit('toast.open', "YouTube Embed URL copied to clipboard")
|
||||
this.copy(this.youtubeEmbedURL)
|
||||
this.$refs.iconButton.toggleDropdown()
|
||||
},
|
||||
|
@ -89,6 +93,7 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
copyInvidiousEmbed() {
|
||||
FtToastEvents.$emit('toast.open', "Invidious Embed URL copied to clipboard")
|
||||
this.copy(this.invidiousEmbedURL)
|
||||
this.$refs.iconButton.toggleDropdown()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue