diff --git a/changes/changelog.d/embed-wizard.enhancement b/changes/changelog.d/embed-wizard.enhancement new file mode 100644 index 000000000..7c3491322 --- /dev/null +++ b/changes/changelog.d/embed-wizard.enhancement @@ -0,0 +1 @@ +Enhanced the design of the embed wizard. (!619) diff --git a/front/src/components/audio/EmbedWizard.vue b/front/src/components/audio/EmbedWizard.vue index f919ec5cd..a5311d106 100644 --- a/front/src/components/audio/EmbedWizard.vue +++ b/front/src/components/audio/EmbedWizard.vue @@ -17,12 +17,14 @@
- +

Copy/paste this code in your website HTML

- - +
+

Text copied to clipboard!

+
@@ -41,7 +43,8 @@ export default { let d = { width: null, height: 150, - minHeight: 100 + minHeight: 100, + copied: false } if (this.type === 'album') { d.height = 330 @@ -70,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) } } } @@ -77,4 +85,9 @@ export default {