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 2021/02/01 16:59:03 UTC
[GitHub] [airflow] bbovenzi commented on a change in pull request #13922: Fix read allows dag trigger bug
bbovenzi commented on a change in pull request #13922:
URL: https://github.com/apache/airflow/pull/13922#discussion_r567985340
##########
File path: airflow/www/templates/airflow/dags.html
##########
@@ -167,15 +167,15 @@ <h2>DAGs</h2>
<td class="text-center">
<div class="btn-group">
{% if dag %}
- <a href="{{ url_for('Airflow.trigger', dag_id=dag.dag_id) }}" title="Trigger DAG" aria-label="Trigger DAG" class="btn btn-sm btn-default btn-icon-only">
- <span class="material-icons" aria-hidden="true">play_arrow</span>
- </a>
- <a href="{{ url_for('Airflow.refresh', dag_id=dag.dag_id) }}" onclick="postAsForm(this.href); return false" title="Refresh DAG" aria-label="Refresh DAG" class="btn btn-sm btn-default btn-icon-only">
- <span class="material-icons" aria-hidden="true">refresh</span>
- </a>
+ <a href="{{ url_for('Airflow.trigger', dag_id=dag.dag_id) }}" title="Trigger DAG" aria-label="Trigger DAG" class="btn btn-sm btn-default btn-icon-only {{ ' disabled' if not dag.can_trigger }}">
Review comment:
It seems like there's an unnecessary indentation here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org