2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-31 22:35:19 +00:00

Add new allGroups scope to manageZones view, update view to allow for viewing all groups when creating an acl rule

This commit is contained in:
Nicholas Spadaccino
2022-05-06 16:19:15 -04:00
parent 57479812f9
commit e9406ec24d
3 changed files with 10 additions and 1 deletions

View File

@@ -376,7 +376,7 @@
ng-controller="ZonesController"
ng-disabled="aclModal.details.readOnly"
required>
<option ng-repeat="group in myGroups" value="{{ group.id }}">
<option ng-repeat="group in allGroups" value="{{ group.id }}">
{{group.name}} ({{group.description}})</option>
<option value="">--- Please select a group ---</option>
</select>

View File

@@ -43,6 +43,7 @@ angular.module('controller.manageZones', [])
UPDATE: 0,
CONFIRM_UPDATE: 1
};
$scope.allGroups = [];
$scope.keyAlgorithms = ['HMAC-MD5', 'HMAC-SHA1', 'HMAC-SHA224', 'HMAC-SHA256', 'HMAC-SHA384', 'HMAC-SHA512'];

View File

@@ -22,6 +22,7 @@ angular.module('controller.zones', [])
$scope.zonesLoaded = false;
$scope.allZonesLoaded = false;
$scope.hasZones = false; // Re-assigned each time zones are fetched without a query
$scope.allGroups = [];
$scope.query = "";
@@ -60,6 +61,13 @@ angular.module('controller.zones', [])
$scope.resetCurrentZone();
});
groupsService.getGroups(true, "").then(function (results) {
if (results.data) {
$scope.allGroups = results.data.groups;
}
$scope.resetCurrentZone();
});
zonesService.getBackendIds().then(function (results) {
if (results.data) {
$scope.backendIds = results.data;