Close dropdown when share button clicked

This commit is contained in:
Cadence Ember 2020-06-19 04:03:20 +12:00
parent eefd2a1532
commit 1f5517e751
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
2 changed files with 9 additions and 0 deletions

View File

@ -55,34 +55,42 @@ export default Vue.extend({
openInvidious() { openInvidious() {
this.open(this.invidiousURL) this.open(this.invidiousURL)
this.$refs.iconButton.toggleDropdown()
}, },
copyInvidious() { copyInvidious() {
this.copy(this.invidiousURL) this.copy(this.invidiousURL)
this.$refs.iconButton.toggleDropdown()
}, },
openYoutube() { openYoutube() {
this.open(this.youtubeURL) this.open(this.youtubeURL)
this.$refs.iconButton.toggleDropdown()
}, },
copyYoutube() { copyYoutube() {
this.copy(this.youtubeURL) this.copy(this.youtubeURL)
this.$refs.iconButton.toggleDropdown()
}, },
openYoutubeEmbed() { openYoutubeEmbed() {
this.open(this.youtubeEmbedURL) this.open(this.youtubeEmbedURL)
this.$refs.iconButton.toggleDropdown()
}, },
copyYoutubeEmbed() { copyYoutubeEmbed() {
this.copy(this.youtubeEmbedURL) this.copy(this.youtubeEmbedURL)
this.$refs.iconButton.toggleDropdown()
}, },
openInvidiousEmbed() { openInvidiousEmbed() {
this.open(this.invidiousEmbedURL) this.open(this.invidiousEmbedURL)
this.$refs.iconButton.toggleDropdown()
}, },
copyInvidiousEmbed() { copyInvidiousEmbed() {
this.copy(this.invidiousEmbedURL) this.copy(this.invidiousEmbedURL)
this.$refs.iconButton.toggleDropdown()
}, },
} }
}) })

View File

@ -1,5 +1,6 @@
<template> <template>
<ft-icon-button <ft-icon-button
ref="iconButton"
title="Share Video" title="Share Video"
theme="secondary" theme="secondary"
icon="share-alt" icon="share-alt"