mitchell852 commented on code in PR #6855:
URL: https://github.com/apache/trafficcontrol/pull/6855#discussion_r881983004


##########
traffic_portal/app/src/common/modules/form/deliveryService/edit/FormEditDeliveryServiceController.js:
##########
@@ -299,7 +299,10 @@ var FormEditDeliveryServiceController = 
function(deliveryService, origin, topolo
                                
deliveryServiceService.deleteDeliveryService(deliveryService)
                                        .then(
                                                function() {
-                                                       
messageModel.setMessages([ { level: 'success', text: 'Delivery service [ ' + 
deliveryService.xmlId + ' ] deleted' } ], true);
+                                                       
messageModel.setMessages([

Review Comment:
   why? TP can just show the message(s) sent from the API with 
messageModel.setMessages(result.alerts, true) or something like that. This 
approach has essentially hard-coded the api message into the UI.



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

To unsubscribe, e-mail: [email protected]

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

Reply via email to