added copied to clipboard notice

This commit is contained in:
booploops 2022-02-01 22:17:46 -08:00
parent dcbf340b9c
commit a4a8f81dec
2 changed files with 2 additions and 0 deletions

View file

@ -60,6 +60,7 @@
"term.mute": "Mute", "term.mute": "Mute",
"term.unmute": "Unmute", "term.unmute": "Unmute",
"term.share": "Share", "term.share": "Share",
"term.share.success": "Copied to clipboard",
"term.settings": "Settings", "term.settings": "Settings",
"term.seeAll": "See All", "term.seeAll": "See All",
"term.sortBy": "Sort By", "term.sortBy": "Sort By",

View file

@ -971,6 +971,7 @@ const app = new Vue({
}) })
}, },
copyToClipboard(str) { copyToClipboard(str) {
notyf.success(app.getLz('term.share.success'))
navigator.clipboard.writeText(str) navigator.clipboard.writeText(str)
}, },
newPlaylist(name = app.getLz('term.newPlaylist'), tracks = []) { newPlaylist(name = app.getLz('term.newPlaylist'), tracks = []) {