mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 16:45:43 -06:00
* HelpModal: Migrates to new style * Alerting: Migrates how to do alerting modal to React * ApiKeysModal: migrates to new theme * Dashboard: View dasboard json modal migrated to React and new theme * PluginPage: migrates update plugin modal to react and new theme * Chore: deprecates events and functions * Simplify help modal * Updated json modal to use Modal.ButtonRow * Tweak to api key design * Tests: updates snapshot Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
41 lines
773 B
Plaintext
41 lines
773 B
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"
|
|
>
|
|
<span
|
|
className="css-ypoxjz"
|
|
>
|
|
api key test
|
|
</span>
|
|
</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>
|
|
`;
|