Skip to content

Commit

Permalink
Remove hx attributes from return button
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok authored and madwort committed Jun 28, 2024
1 parent 8a754a6 commit 0dec68b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airlock/templates/file_browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{% csrf_token %}
{% #button type="submit" variant="danger" class="action-button btn-sm" id="reject-request-button" %}Reject request{% /button %}
</form>
<form action="{{ request_return_url }}" method="POST" hx-post="{{ request_return_url }}" hx-disabled-elt="button">
<form action="{{ request_return_url }}" method="POST">
{% csrf_token %}
{% #button type="submit" class="btn-sm" tooltip="Return request for changes/clarification" variant="secondary" id="return-request-button" %}Return request{% /button %}
</form>
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_request_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def test_request_returnable(
if can_return:
expect(return_request_button).to_be_enabled()
return_request_button.click()
expect(return_request_button).to_be_disabled()
expect(return_request_button).not_to_be_visible()
elif login_as == "author":
expect(return_request_button).not_to_be_visible()
else:
Expand Down

0 comments on commit 0dec68b

Please sign in to comment.