You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/29 20:27:22 UTC

[GitHub] feluelle commented on a change in pull request #4613: [AIRFLOW-3749] Fix Edit Dag Run page when using RBAC

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


With regards,
Apache Git Services