2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-09-05 08:45:11 +00:00

Zone BackendID in portal (#607)

* list backend ids route and option to update a zones backendid in portal
This commit is contained in:
Nima Eskandary
2019-05-06 11:51:27 -04:00
committed by GitHub
parent 12c6d4e67c
commit f0a25fe943
19 changed files with 210 additions and 2 deletions

View File

@@ -26,6 +26,12 @@ angular.module('controller.manageZones', [])
handleError(error, 'getMyGroup:get-groups-failure');
});
zonesService.getBackendIds().then(function (results) {
if (results.data) {
$scope.backendIds = results.data;
}
});
/**
* Zone scope data initial setup
*/
@@ -145,6 +151,7 @@ angular.module('controller.manageZones', [])
var zone = angular.copy($scope.updateZoneInfo);
zone = zonesService.normalizeZoneDates(zone);
zone = zonesService.setConnectionKeys(zone);
zone = zonesService.checkBackendId(zone);
$scope.currentManageZoneState = $scope.manageZoneState.UPDATE;
$scope.updateZone(zone, 'Zone Update');
};