maatma: Display a message for domain without dnssec

This commit is contained in:
nemunaire 2022-03-10 18:14:12 +01:00
parent 6e89a8011f
commit 52b218f2ea
3 changed files with 21 additions and 2 deletions

View file

@ -1,5 +1,9 @@
const dn_without_dnssec = ["driivve.com.", "driivee.cloud."];
function dn_has_dnssec(dn) {
return dn_without_dnssec.reduce((s, e) => (s && dn.indexOf(e) === -1), true)
}
const tuto_legend = {
"danger": "Test jamais réussi",
"warning": "Test réussi il y a plus de 5 minutes",

View file

@ -644,6 +644,9 @@ angular.module("AdLinApp")
})
.controller("DSDomainsController", function($scope, $http) {
$scope.dn_has_dnssec = dn_has_dnssec;
$scope.dn_without_dnssec = dn_without_dnssec;
console.log(dn_without_dnssec)
var updateDS = function() {
$http({
method: 'GET',