bbovenzi commented on code in PR #39636:
URL: https://github.com/apache/airflow/pull/39636#discussion_r1603746731


##########
airflow/www/static/js/main.js:
##########
@@ -287,3 +287,18 @@ $(document).ready(() => {
   // Global Tooltip selector
   $(".js-tooltip").tooltip();
 });
+
+$(".reparse_dag").click((event) => {
+  console.log(event);
+  event.preventDefault();
+  $.ajax({
+    url: event.currentTarget.attributes.href.value,
+    type: "PUT",
+    done(response) {
+      console.log(response);

Review Comment:
   Yes, we haven't called the REST API from FAB pages before. Only in react and 
FAB endpoints had their own actions in `views.py`.
   
   We probably should wrap the API call inside of a function in `views.py` so 
we can still use the FAB alerts. Hopefully we can remove that soon when we 
migrate these pages to react.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to