2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-09-02 15:25:44 +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

@@ -55,6 +55,12 @@ angular.module('controller.zones', [])
$scope.resetCurrentZone();
});
zonesService.getBackendIds().then(function (results) {
if (results.data) {
$scope.backendIds = results.data;
}
});
$scope.isGroupMember = function(groupId) {
var groupMember = $scope.myGroups.find(function(group) {
return groupId === group.id;
@@ -103,6 +109,7 @@ angular.module('controller.zones', [])
//flag to prevent multiple clicks until previous promise has resolved.
$scope.processing = true;
$scope.currentZone = zonesService.checkBackendId($scope.currentZone);
zonesService.sendZone($scope.currentZone)
.then(function () {