From 1f5517e751f9d03620e8f3254238db2e5856cad1 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Fri, 19 Jun 2020 04:03:20 +1200 Subject: [PATCH] Close dropdown when share button clicked --- .../components/ft-share-button/ft-share-button.js | 8 ++++++++ .../components/ft-share-button/ft-share-button.vue | 1 + 2 files changed, 9 insertions(+) diff --git a/src/renderer/components/ft-share-button/ft-share-button.js b/src/renderer/components/ft-share-button/ft-share-button.js index 8b86f4dc..ac9799c0 100644 --- a/src/renderer/components/ft-share-button/ft-share-button.js +++ b/src/renderer/components/ft-share-button/ft-share-button.js @@ -55,34 +55,42 @@ export default Vue.extend({ openInvidious() { this.open(this.invidiousURL) + this.$refs.iconButton.toggleDropdown() }, copyInvidious() { this.copy(this.invidiousURL) + this.$refs.iconButton.toggleDropdown() }, openYoutube() { this.open(this.youtubeURL) + this.$refs.iconButton.toggleDropdown() }, copyYoutube() { this.copy(this.youtubeURL) + this.$refs.iconButton.toggleDropdown() }, openYoutubeEmbed() { this.open(this.youtubeEmbedURL) + this.$refs.iconButton.toggleDropdown() }, copyYoutubeEmbed() { this.copy(this.youtubeEmbedURL) + this.$refs.iconButton.toggleDropdown() }, openInvidiousEmbed() { this.open(this.invidiousEmbedURL) + this.$refs.iconButton.toggleDropdown() }, copyInvidiousEmbed() { this.copy(this.invidiousEmbedURL) + this.$refs.iconButton.toggleDropdown() }, } }) diff --git a/src/renderer/components/ft-share-button/ft-share-button.vue b/src/renderer/components/ft-share-button/ft-share-button.vue index e1117767..61ff16c6 100644 --- a/src/renderer/components/ft-share-button/ft-share-button.vue +++ b/src/renderer/components/ft-share-button/ft-share-button.vue @@ -1,5 +1,6 @@