Skip to content

Commit

Permalink
Add SR label to identify which API key is being revoked (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
whabanks authored Oct 11, 2023
1 parent 0a5ae7c commit c782fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/templates/views/api/keys.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2 class="heading-small">
{% endcall %}
{% else %}
{% call field(align='right', status='error') %}
<a href='{{ url_for('.revoke_api_key', service_id=current_service.id, key_id=item.id) }}'>{{ _('Revoke') }}</a>
<a href='{{ url_for('.revoke_api_key', service_id=current_service.id, key_id=item.id) }}'>{{ _('Revoke') }}<span class="sr-only"> {{_('API key') + ' ' + item.name }}</span></a>
{% endcall %}
{% endif %}
{% endcall %}
Expand Down
2 changes: 1 addition & 1 deletion tests/app/main/views/test_api_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_should_show_api_keys_page(

assert rows[0] == "API keys Action"
assert "another key name Revoked" in rows[1]
assert rows[2] == "some key name Revoke"
assert rows[2] == "some key name Revoke API key some key name"

mock_get_api_keys.assert_called_once_with(SERVICE_ONE_ID)

Expand Down

0 comments on commit c782fc9

Please sign in to comment.