mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
* add copy button to API Key modal * switch to inline button style * update test snapshot
53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Render should render component 1`] = `
|
|
<Modal
|
|
isOpen={true}
|
|
onClickBackdrop={[MockFunction]}
|
|
onDismiss={[MockFunction]}
|
|
title="API Key Created"
|
|
>
|
|
<Field
|
|
label="Key"
|
|
>
|
|
<Input
|
|
addonAfter={
|
|
<ClipboardButton
|
|
getText={[Function]}
|
|
onClipboardCopy={[Function]}
|
|
variant="primary"
|
|
>
|
|
<Icon
|
|
name="copy"
|
|
/>
|
|
Copy
|
|
</ClipboardButton>
|
|
}
|
|
id="Key"
|
|
readOnly={true}
|
|
value="api key test"
|
|
/>
|
|
</Field>
|
|
<Alert
|
|
severity="info"
|
|
title="You will only be able to view this key here once!"
|
|
>
|
|
It is not stored in this form, so be sure to copy it now.
|
|
</Alert>
|
|
<p
|
|
className="text-muted"
|
|
>
|
|
You can authenticate a request using the Authorization HTTP header, example:
|
|
</p>
|
|
<pre
|
|
className="css-omfua5"
|
|
>
|
|
curl -H "Authorization: Bearer
|
|
api key test
|
|
"
|
|
test/path
|
|
/api/dashboards/home
|
|
</pre>
|
|
</Modal>
|
|
`;
|