diff --git a/app/assets/javascripts/apiKey.js b/app/assets/javascripts/apiKey.js index e7905e2d0..2bbfa174c 100644 --- a/app/assets/javascripts/apiKey.js +++ b/app/assets/javascripts/apiKey.js @@ -33,8 +33,6 @@ key = $component.data('key'), thing = $component.data('thing'); - console.log(thing) - $component .html(states.keyVisible(key, thing)) .attr('aria-live', 'polite') diff --git a/app/templates/views/api-keys.html b/app/templates/views/api-keys.html index 5a187d27f..9da84d7de 100644 --- a/app/templates/views/api-keys.html +++ b/app/templates/views/api-keys.html @@ -8,9 +8,16 @@ {% block maincolumn_content %} -
To connect to the API you will need to create an API Key. Each service can have multiple API Keys to allow @@ -44,10 +51,6 @@ {% endif %} {% endcall %} -
- {{ api_key(current_service.id, "Service ID", thing="service ID") }} {% endblock %} diff --git a/tests/app/main/views/test_api_keys.py b/tests/app/main/views/test_api_keys.py index a21905246..70ad47196 100644 --- a/tests/app/main/views/test_api_keys.py +++ b/tests/app/main/views/test_api_keys.py @@ -34,7 +34,7 @@ def test_should_show_empty_api_keys_page(app_, assert response.status_code == 200 assert 'You haven’t created any API keys yet' in response.get_data(as_text=True) - assert 'Create a new API key' in response.get_data(as_text=True) + assert 'Create new API key' in response.get_data(as_text=True) mock_get_no_api_keys.assert_called_once_with(service_id=service_id)