mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-09-04 08:15:18 +00:00
fix zonechange history bug
This commit is contained in:
@@ -30,7 +30,10 @@
|
||||
<td>{{ zoneChange.zone.created }}</td>
|
||||
<td>{{ zoneChange.zone.updated }}</td>
|
||||
<td>{{ zoneChange.changeType == "AutomatedSync" ? "Automated Sync" : zoneChange.changeType }}</td>
|
||||
<td><a ng-bind="zoneChange.zone.adminGroupName" href="/groups/{{zoneChange.zone.adminGroupId}}"></a>
|
||||
<td ng-switch="zoneChange.zone.adminGroupName || '_undefined_'">
|
||||
<p ng-switch-when="_undefined_">Group has been deleted now.</p>
|
||||
<a ng-switch-default ng-bind="zoneChange.zone.adminGroupName" href="/groups/{{zoneChange.zone.adminGroupId}}"></a>
|
||||
</td>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-info btn-sm"
|
||||
|
@@ -391,7 +391,6 @@ angular.module('controller.manageZones', ['angular-cron-jobs'])
|
||||
/**
|
||||
* Get User name and Group Name with Ids for Zone history
|
||||
*/
|
||||
|
||||
function getZoneGroup(groupId, length) {
|
||||
function success(response) {
|
||||
$log.log('groupsService::getZoneGroup-success');
|
||||
@@ -401,7 +400,8 @@ angular.module('controller.manageZones', ['angular-cron-jobs'])
|
||||
.getGroup(groupId)
|
||||
.then(success)
|
||||
.catch(function (error) {
|
||||
handleError(error, 'groupsService::getZoneGroup-failure');
|
||||
$scope.zoneChanges[length].zone.adminGroupName = undefined;
|
||||
$log.warn(error, 'groupsService::getZoneGroup-failure');
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user