You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/07/16 18:42:09 UTC

[GitHub] [trafficcontrol] ocket8888 commented on a change in pull request #3726: Add redirect to link profiles page on TP parameter creation

ocket8888 commented on a change in pull request #3726: Add redirect to link profiles page on TP parameter creation
URL: https://github.com/apache/trafficcontrol/pull/3726#discussion_r304063138
 
 

 ##########
 File path: traffic_portal/app/src/common/api/ParameterService.js
 ##########
 @@ -30,9 +30,9 @@ var ParameterService = function(Restangular, $http, $q, locationUtils, messageMo
     this.createParameter = function(parameter) {
         return Restangular.service('parameters').post(parameter)
             .then(
-            function() {
+            function(response) {
                 messageModel.setMessages([ { level: 'success', text: 'Parameter created' } ], true);
-                locationUtils.navigateToPath('/parameters');
 
 Review comment:
   Couldn't this be accomplished by just changing this path to `'/parameters/' + String(parameter.id) + '/profiles'` ?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services