From 065fc49db022cfb834615515f5f88471344cc5c9 Mon Sep 17 00:00:00 2001 From: no-comma <82644961+no-comma@users.noreply.github.com> Date: Mon, 6 Sep 2021 14:39:54 +0000 Subject: [PATCH] Feedback when copying playlist link (#1660) * Show message when copying playlist URL * Move toast to after writing to clipboard --- src/renderer/components/playlist-info/playlist-info.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/renderer/components/playlist-info/playlist-info.js b/src/renderer/components/playlist-info/playlist-info.js index e2234343..3942920d 100644 --- a/src/renderer/components/playlist-info/playlist-info.js +++ b/src/renderer/components/playlist-info/playlist-info.js @@ -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' ]) }