2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-09-04 00:05:12 +00:00

fix zonechange history bug

This commit is contained in:
Aravindh-Raju
2023-02-27 12:08:06 +05:30
parent 8d2d13dec8
commit 59cdf92890
2 changed files with 6 additions and 3 deletions

View File

@@ -30,7 +30,10 @@
<td>{{ zoneChange.zone.created }}</td> <td>{{ zoneChange.zone.created }}</td>
<td>{{ zoneChange.zone.updated }}</td> <td>{{ zoneChange.zone.updated }}</td>
<td>{{ zoneChange.changeType == "AutomatedSync" ? "Automated Sync" : zoneChange.changeType }}</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>
<td> <td>
<button class="btn btn-info btn-sm" <button class="btn btn-info btn-sm"

View File

@@ -391,7 +391,6 @@ angular.module('controller.manageZones', ['angular-cron-jobs'])
/** /**
* Get User name and Group Name with Ids for Zone history * Get User name and Group Name with Ids for Zone history
*/ */
function getZoneGroup(groupId, length) { function getZoneGroup(groupId, length) {
function success(response) { function success(response) {
$log.log('groupsService::getZoneGroup-success'); $log.log('groupsService::getZoneGroup-success');
@@ -401,7 +400,8 @@ angular.module('controller.manageZones', ['angular-cron-jobs'])
.getGroup(groupId) .getGroup(groupId)
.then(success) .then(success)
.catch(function (error) { .catch(function (error) {
handleError(error, 'groupsService::getZoneGroup-failure'); $scope.zoneChanges[length].zone.adminGroupName = undefined;
$log.warn(error, 'groupsService::getZoneGroup-failure');
}); });
} }