mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
* refactor(loginpage): migrate custom button styles to use Button component * refactor(certificationkey): prefer grafana-ui form elements over html elements and classnames * refactor(axisselector): prefer grafana-ui Button component over html button element * refactor(input-datasource): replace use of btn class with grafana-ui components * chore(grafana-ui): delete deprecated ToggleButtonGroup component * refactor: replace btn and cta-form__close class usage with IconButton * chore(closebutton): post master merge use v2 theme * refactor(permissionlist): remove usage of .btn classname * Wip * docs(styling): update styling and theme docs import paths * refactor(alerting): remote btn classnames from TestRuleResult * refactor(apikeys): prefer grafana-ui Button components over btn classNames * refactor(folders): prefer grafana-ui Button components over btn classNames * refactor(teams): prefer grafana-ui Button components over btn classNames * refactor(datasources): prefer grafana-ui Button components over btn classNames * refactor: prefer grafana-ui Button components over btn classNames * Minor style tweak to service buttons * test: update snapshots related to button changes * chore(input-datasource): remove unused import declaration * refactor(loginservicebuttons): rename theme.palette to theme.colors Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
116 lines
2.2 KiB
Plaintext
116 lines
2.2 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Render should enable save button 1`] = `
|
|
<Page
|
|
navModel={Object {}}
|
|
>
|
|
<PageContents
|
|
isLoading={false}
|
|
>
|
|
<h3
|
|
className="page-sub-heading"
|
|
>
|
|
Folder settings
|
|
</h3>
|
|
<div
|
|
className="section gf-form-group"
|
|
>
|
|
<form
|
|
name="folderSettingsForm"
|
|
onSubmit={[Function]}
|
|
>
|
|
<div
|
|
className="gf-form"
|
|
>
|
|
<label
|
|
className="gf-form-label width-7"
|
|
>
|
|
Name
|
|
</label>
|
|
<Input
|
|
className="gf-form-input width-30"
|
|
onChange={[Function]}
|
|
type="text"
|
|
value="loading"
|
|
/>
|
|
</div>
|
|
<div
|
|
className="gf-form-button-row"
|
|
>
|
|
<Button
|
|
disabled={false}
|
|
type="submit"
|
|
>
|
|
Save
|
|
</Button>
|
|
<Button
|
|
disabled={false}
|
|
onClick={[Function]}
|
|
variant="destructive"
|
|
>
|
|
Delete
|
|
</Button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</PageContents>
|
|
</Page>
|
|
`;
|
|
|
|
exports[`Render should render component 1`] = `
|
|
<Page
|
|
navModel={Object {}}
|
|
>
|
|
<PageContents
|
|
isLoading={false}
|
|
>
|
|
<h3
|
|
className="page-sub-heading"
|
|
>
|
|
Folder settings
|
|
</h3>
|
|
<div
|
|
className="section gf-form-group"
|
|
>
|
|
<form
|
|
name="folderSettingsForm"
|
|
onSubmit={[Function]}
|
|
>
|
|
<div
|
|
className="gf-form"
|
|
>
|
|
<label
|
|
className="gf-form-label width-7"
|
|
>
|
|
Name
|
|
</label>
|
|
<Input
|
|
className="gf-form-input width-30"
|
|
onChange={[Function]}
|
|
type="text"
|
|
value="loading"
|
|
/>
|
|
</div>
|
|
<div
|
|
className="gf-form-button-row"
|
|
>
|
|
<Button
|
|
disabled={true}
|
|
type="submit"
|
|
>
|
|
Save
|
|
</Button>
|
|
<Button
|
|
disabled={false}
|
|
onClick={[Function]}
|
|
variant="destructive"
|
|
>
|
|
Delete
|
|
</Button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</PageContents>
|
|
</Page>
|
|
`;
|