diff --git a/front/src/components/audio/EmbedWizard.vue b/front/src/components/audio/EmbedWizard.vue
index 73569e64f..a5311d106 100644
--- a/front/src/components/audio/EmbedWizard.vue
+++ b/front/src/components/audio/EmbedWizard.vue
@@ -22,6 +22,9 @@
Copy/paste this code in your website HTML
+
+
Text copied to clipboard!
+
@@ -40,7 +43,8 @@ export default {
let d = {
width: null,
height: 150,
- minHeight: 100
+ minHeight: 100,
+ copied: false
}
if (this.type === 'album') {
d.height = 330
@@ -69,6 +73,11 @@ export default {
copy () {
this.$refs.textarea.select()
document.execCommand("Copy")
+ let self = this
+ self.copied = true
+ this.timeout = setTimeout(() => {
+ self.copied = false
+ }, 5000)
}
}
}
@@ -76,4 +85,9 @@ export default {