rename api key component to copy_to_clipboard

does what it says on the tin, and is also consistent with prior art:
https://components.publishing.service.gov.uk/component-guide/copy_to_clipboard
This commit is contained in:
Leo Hemsted
2021-08-27 17:32:06 +01:00
parent 4921e6d46e
commit 85f6881a56
14 changed files with 100 additions and 100 deletions

View File

@@ -1,6 +1,6 @@
{% extends "withnav_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/api-key.html" import api_key %}
{% from "components/copy-to-clipboard.html" import copy_to_clipboard %}
{% block service_page_title %}
New API key
@@ -22,7 +22,7 @@
<div class="bottom-gutter-2">
{{ api_key(
{{ copy_to_clipboard(
'{}-{}-{}'.format(key_name, service_id, secret),
name='API key',
thing='API key'