diff --git a/src/nginxconfig/templates/app.vue b/src/nginxconfig/templates/app.vue index 76874f1..da5069b 100644 --- a/src/nginxconfig/templates/app.vue +++ b/src/nginxconfig/templates/app.vue @@ -1,5 +1,5 @@ @@ -42,5 +42,10 @@ THE SOFTWARE. console.info(`Highlighting ${this.$props.cmd}...`); Prism.highlightAllUnder(this.$el); }, + methods: { + copied(event) { + this.$emit('copied', event.detail.text); + }, + }, }; diff --git a/src/nginxconfig/templates/prism/docker.vue b/src/nginxconfig/templates/prism/docker.vue index 96635db..670e13c 100644 --- a/src/nginxconfig/templates/prism/docker.vue +++ b/src/nginxconfig/templates/prism/docker.vue @@ -1,5 +1,5 @@