Skip to content

Commit

Permalink
start_pipeline_run fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barslmn committed Feb 10, 2025
1 parent a329a55 commit c5b3475
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions canvas/templates/canvas/partials/pipeline_button.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
class="pipeline-button {{ status.value }}"
{% if status.value == 'not_running' %}
hx-post="{% url 'start_pipeline_run' %}" hx-vals='{"chip_pk":
"{{ chip.pk }}"}' hx-target="this"
"{{ chip.pk }}"}' hx-target="this" hx-select="i, svg" hx-swap="innerHTML"
hx-trigger="click"
{% else %}
hx-get="{% url 'get_pipeline_status' %}" hx-vals='{"chip_pk":
"{{ chip.pk }}"}' hx-trigger="load delay:144s" hx-select="i, svg"
hx-swap="innerHTML"
{% endif %}
hx-get="{% url 'get_pipeline_status' %}"
hx-vals='{"chip_pk": "{{ chip.pk }}"}'
hx-trigger="load delay:144s"
>
{% if status.value == 'running' %}
<i
Expand Down

0 comments on commit c5b3475

Please sign in to comment.