maatma: Can specify a dedicated IPv6 for NS association

This commit is contained in:
nemunaire 2021-02-04 09:37:24 +01:00
parent 66cfb49a08
commit dea2436c88
3 changed files with 120 additions and 16 deletions

View file

@ -282,13 +282,36 @@ angular.module("AdLinApp")
});
});
};
$scope.updateDelegatedD();
$scope.updateDelegatedD();
$scope.newAssociationD = function() {
$scope.askAssociationD = function() {
if ($scope.adomains.length == 0) {
return $scope.newAssociationD({})
}
var aaaa = ""
if ($scope.adomains.length >= 1) {
$scope.adomains.forEach(function (adomain) {
if (adomain.values.join("").slice(0, 5) == "2a01:")
aaaa = adomain.values.join("")
})
}
$scope.assoc = {
"domain": $scope.adomains[0].domain,
"a": "82.64.31.248",
"aaaa": aaaa,
}
$('#AssocModal').modal('show');
}
$scope.newAssociationD = function(assoc) {
$('#AssocModal').modal('hide');
$scope.pleaseWaitNewAssociation = true;
$http({
method: 'POST',
url: "api/adomains/",
url: "api/adomains/",
data: assoc,
}).then(function(response) {
$scope.updateAssociationD();
$scope.pleaseWaitNewAssociation = false;