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



##########
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:
       I'm not much of a javascripter, but is it possible to use the 
`result.data.response.name` to navigate back to the original page?




----------------------------------------------------------------
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