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:
@@ -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>
|
||||
|
@@ -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'];
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user