archive: prefill secondary domain correctly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user