diff --git a/frontend/src/components/domains/DKIMKeyViewer.vue b/frontend/src/components/domains/DKIMKeyViewer.vue index d995cb73a..aa63e2b9f 100644 --- a/frontend/src/components/domains/DKIMKeyViewer.vue +++ b/frontend/src/components/domains/DKIMKeyViewer.vue @@ -1,6 +1,6 @@ @@ -24,9 +24,8 @@ export default { } return result.join('\n') }, - copyDNSToClipboard () { - const text = document.getElementById('dkimdns').textContent - navigator.clipboard.writeText(text) + copyDKIM () { + navigator.clipboard.writeText(document.getElementById('dkimdns').textContent) } } } diff --git a/frontend/src/components/domains/DNSDetail.vue b/frontend/src/components/domains/DNSDetail.vue index 3ae4ac647..e85ef70d5 100644 --- a/frontend/src/components/domains/DNSDetail.vue +++ b/frontend/src/components/domains/DNSDetail.vue @@ -164,7 +164,7 @@ export default { const confirm = await this.$refs.confirm.open( this.$gettext('Warning'), this.$gettext( - 'Do you really want to regenerate the DKIM keys set for this domain ?' + 'DKIM keys already exist for this domain. Do you want to overwrite them?' ), { color: 'error', diff --git a/frontend/src/components/domains/DomainDKIMKey.vue b/frontend/src/components/domains/DomainDKIMKey.vue index 60b1eb1c3..0313937b5 100644 --- a/frontend/src/components/domains/DomainDKIMKey.vue +++ b/frontend/src/components/domains/DomainDKIMKey.vue @@ -32,7 +32,7 @@ elevation="2" dense > - + @@ -70,9 +70,8 @@ export default { close () { this.$emit('close') }, - copyPubKeyToClipboard () { - const text = document.getElementById('dkimpub').textContent - navigator.clipboard.writeText(text) + copyPubDKIM () { + navigator.clipboard.writeText(document.getElementById('dkimpub').textContent) } } } diff --git a/modoboa/admin/templates/admin/_domain_dkim_key.html b/modoboa/admin/templates/admin/_domain_dkim_key.html index 72c5bbb9b..f3732b7bd 100644 --- a/modoboa/admin/templates/admin/_domain_dkim_key.html +++ b/modoboa/admin/templates/admin/_domain_dkim_key.html @@ -9,11 +9,11 @@