rimashah25 commented on a change in pull request #5495:
URL: https://github.com/apache/trafficcontrol/pull/5495#discussion_r570630069



##########
File path: 
traffic_portal/app/src/common/modules/form/topology/edit/FormEditTopologyController.js
##########
@@ -37,11 +37,12 @@ var FormEditTopologyController = function(topologies, 
cacheGroups, $scope, $cont
                saveLabel: 'Update'
        };
 
-       $scope.save = function(name, description, topologyTree) {
-               let normalizedTopology = 
topologyUtils.getNormalizedTopology(name, description, topologyTree);
-               topologyService.updateTopology(normalizedTopology).
+       $scope.save = function(currentName, newName, description, topologyTree) 
{
+               let normalizedTopology = 
topologyUtils.getNormalizedTopology(newName, description, topologyTree);
+               topologyService.updateTopology(normalizedTopology, currentName).
                        then(function(result) {
-                               messageModel.setMessages(result.data.alerts, 
false);
+                               messageModel.setMessages(result.data.alerts, 
true);
+                               locationUtils.navigateToPath('/topologies');

Review comment:
       We can't since the `query param` in the url link will have old param. 
So, we need to go back to /topologies, and then click on a topology, to update 
the `query param` to new name.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to