Skip to content

Commit

Permalink
Fix logic that displays packaging queue button on rule check page
Browse files Browse the repository at this point in the history
  • Loading branch information
eadpearce committed Jan 23, 2025
1 parent ec40e02 commit 6a80fa8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ govuk-button{% if workbasket.tracked_model_checks.exists() %} govuk-button--seco
{% endset %}
{% set rule_check_button = terminate_rule_check_form %}
{% set rule_check_block %}{% endset %}
{% elif workbasket.tracked_model_checks.exists() and not workbasket.unchecked_or_errored_transactions.exists() and not missing_measures_check_successful %}
{% elif workbasket.tracked_model_checks.exists() and not workbasket.unchecked_or_errored_transactions.exists() %}
{% set live_rule_check_status = "Business rule check passed. No business rule violations" %}
{% set rule_check_button = run_business_rules_form %}
{% set rule_check_block %}
Expand All @@ -102,6 +102,13 @@ govuk-button{% if workbasket.tracked_model_checks.exists() %} govuk-button--seco
<a href="{{ url('publishing:packaged-workbasket-queue-ui-create')}}" disabled class="govuk-button govuk-button--primary">
Send to packaging queue
</a>
{% elif not missing_measures_check_successful %}
<div class="govuk-hint">
Missing measures check must be run before packaging.
</div>
<a href="{{ url('publishing:packaged-workbasket-queue-ui-create')}}" disabled class="govuk-button govuk-button--primary">
Send to packaging queue
</a>
{% else %}
<a href="{{ url('publishing:packaged-workbasket-queue-ui-create')}}" class="govuk-button govuk-button--primary">
Send to packaging queue
Expand Down

0 comments on commit 6a80fa8

Please sign in to comment.