archive: prefill secondary domain correctly

This commit is contained in:
Girish Ramakrishnan
2024-12-10 19:27:07 +01:00
parent 41b302b0b9
commit 98058f600e
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -359,6 +359,13 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
domain: $scope.archiveRestore.domain
};
}
// now fill secondaryDomains with real values, if it exists
$scope.archiveRestore.app.secondaryDomains.forEach(function (sd) {
$scope.archiveRestore.secondaryDomains[sd.environmentVariable] = {
subdomain: sd.subdomain,
domain: $scope.domains.find(function (d) { return sd.domain === d.domain; })
};
});
$scope.archiveRestore.portInfo = angular.extend({}, manifest.tcpPorts, manifest.udpPorts); // Portbinding map only for information
// set default ports