You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2021/02/19 18:32:08 UTC
[trafficcontrol] branch master updated: Changed the condition for
messagelog. (#5546)
This is an automated email from the ASF dual-hosted git repository.
mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 2b2cd29 Changed the condition for messagelog. (#5546)
2b2cd29 is described below
commit 2b2cd292556a588b7042c9afc879abc7f34acb78
Author: Rima Shah <22...@users.noreply.github.com>
AuthorDate: Fri Feb 19 11:31:56 2021 -0700
Changed the condition for messagelog. (#5546)
---
.../src/common/modules/form/topology/edit/FormEditTopologyController.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/traffic_portal/app/src/common/modules/form/topology/edit/FormEditTopologyController.js b/traffic_portal/app/src/common/modules/form/topology/edit/FormEditTopologyController.js
index ff8e772..9bd8eec 100644
--- a/traffic_portal/app/src/common/modules/form/topology/edit/FormEditTopologyController.js
+++ b/traffic_portal/app/src/common/modules/form/topology/edit/FormEditTopologyController.js
@@ -41,7 +41,7 @@ var FormEditTopologyController = function(topologies, cacheGroups, $scope, $cont
let normalizedTopology = topologyUtils.getNormalizedTopology(newName, description, topologyTree);
topologyService.updateTopology(normalizedTopology, currentName).
then(function(result) {
- messageModel.setMessages(result.data.alerts, true);
+ messageModel.setMessages(result.data.alerts, currentName !== newName);
locationUtils.navigateToPath('/topologies/edit?name=' + result.data.response.name);
});
};