From de32cd5c4d3d5ff0750268b5a7c3aadb8437cd9e Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 23 Feb 2023 18:07:25 +0100 Subject: [PATCH] Few enhancements. --- frontend/src/api/domains.js | 2 +- .../components/dmarc/DmarcAligmentChart.vue | 39 ++++++++++++++----- frontend/src/views/TwoFA.vue | 9 ++++- modoboa/dmarc/api/v2/viewsets.py | 2 + modoboa/dmarc/lib.py | 4 +- 5 files changed, 42 insertions(+), 14 deletions(-) diff --git a/frontend/src/api/domains.js b/frontend/src/api/domains.js index d243f139f..19464e734 100644 --- a/frontend/src/api/domains.js +++ b/frontend/src/api/domains.js @@ -13,7 +13,7 @@ export default { getDomainDNSDetail (domainId) { return repository.get(`/${domainResource}/${domainId}/dns_detail/`) }, - getDomainDmarcAligment (domainId, period) { + getDomainDmarcAlignment (domainId, period) { return repository.get( `${domainResource}/${domainId}/dmarc/alignment_stats/`, { params: { period } } diff --git a/frontend/src/components/dmarc/DmarcAligmentChart.vue b/frontend/src/components/dmarc/DmarcAligmentChart.vue index 4a9bcc236..075dde9f5 100644 --- a/frontend/src/components/dmarc/DmarcAligmentChart.vue +++ b/frontend/src/components/dmarc/DmarcAligmentChart.vue @@ -1,8 +1,8 @@