feluelle commented on a change in pull request #4613: [AIRFLOW-3749] Fix Edit 
Dag Run page when using RBAC
URL: https://github.com/apache/airflow/pull/4613#discussion_r252003788
 
 

 ##########
 File path: airflow/www/templates/airflow/dag.html
 ##########
 @@ -521,7 +521,7 @@ <h4 class="modal-title" id="dagModalLabel">
     });
 
     $('#btn_edit_dagrun').click(function() {
-      window.location = "{{ url_for('DagModelView.show', pk=dag.dag_id) }}";
+      window.location = "{{ url_for('DagModelView.edit', pk=dag.dag_id) }}";
 
 Review comment:
   > (JS that could be written as plain HTML is a bug bear of mine)
   
   True.
   
   But how would you get the `dag_id` from the current dag?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to