mirror of https://github.com/grafana/grafana
chore: Fix typings and add Page-component to FolderSettingsPage #14762
parent
d9a25ee505
commit
3372dc9441
@ -1,131 +1,137 @@ |
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
||||
exports[`Render should enable save button 1`] = ` |
||||
<div> |
||||
<PageHeader |
||||
model={Object {}} |
||||
/> |
||||
<div |
||||
className="page-container page-body" |
||||
<Page |
||||
navModel={Object {}} |
||||
> |
||||
<PageContents |
||||
isLoading={false} |
||||
> |
||||
<h2 |
||||
className="page-sub-heading" |
||||
> |
||||
Folder Settings |
||||
</h2> |
||||
<div |
||||
className="section gf-form-group" |
||||
className="page-container page-body" |
||||
> |
||||
<form |
||||
name="folderSettingsForm" |
||||
onSubmit={[Function]} |
||||
<h2 |
||||
className="page-sub-heading" |
||||
> |
||||
<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" |
||||
Folder Settings |
||||
</h2> |
||||
<div |
||||
className="section gf-form-group" |
||||
> |
||||
<form |
||||
name="folderSettingsForm" |
||||
onSubmit={[Function]} |
||||
> |
||||
<button |
||||
className="btn btn-success" |
||||
disabled={false} |
||||
type="submit" |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<i |
||||
className="fa fa-save" |
||||
<label |
||||
className="gf-form-label width-7" |
||||
> |
||||
Name |
||||
</label> |
||||
<input |
||||
className="gf-form-input width-30" |
||||
onChange={[Function]} |
||||
type="text" |
||||
value="loading" |
||||
/> |
||||
Save |
||||
</button> |
||||
<button |
||||
className="btn btn-danger" |
||||
disabled={false} |
||||
onClick={[Function]} |
||||
</div> |
||||
<div |
||||
className="gf-form-button-row" |
||||
> |
||||
<i |
||||
className="fa fa-trash" |
||||
/> |
||||
Delete |
||||
</button> |
||||
</div> |
||||
</form> |
||||
<button |
||||
className="btn btn-success" |
||||
disabled={false} |
||||
type="submit" |
||||
> |
||||
<i |
||||
className="fa fa-save" |
||||
/> |
||||
Save |
||||
</button> |
||||
<button |
||||
className="btn btn-danger" |
||||
disabled={false} |
||||
onClick={[Function]} |
||||
> |
||||
<i |
||||
className="fa fa-trash" |
||||
/> |
||||
Delete |
||||
</button> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</PageContents> |
||||
</Page> |
||||
`; |
||||
|
||||
exports[`Render should render component 1`] = ` |
||||
<div> |
||||
<PageHeader |
||||
model={Object {}} |
||||
/> |
||||
<div |
||||
className="page-container page-body" |
||||
<Page |
||||
navModel={Object {}} |
||||
> |
||||
<PageContents |
||||
isLoading={false} |
||||
> |
||||
<h2 |
||||
className="page-sub-heading" |
||||
> |
||||
Folder Settings |
||||
</h2> |
||||
<div |
||||
className="section gf-form-group" |
||||
className="page-container page-body" |
||||
> |
||||
<form |
||||
name="folderSettingsForm" |
||||
onSubmit={[Function]} |
||||
<h2 |
||||
className="page-sub-heading" |
||||
> |
||||
<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" |
||||
Folder Settings |
||||
</h2> |
||||
<div |
||||
className="section gf-form-group" |
||||
> |
||||
<form |
||||
name="folderSettingsForm" |
||||
onSubmit={[Function]} |
||||
> |
||||
<button |
||||
className="btn btn-success" |
||||
disabled={true} |
||||
type="submit" |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<i |
||||
className="fa fa-save" |
||||
<label |
||||
className="gf-form-label width-7" |
||||
> |
||||
Name |
||||
</label> |
||||
<input |
||||
className="gf-form-input width-30" |
||||
onChange={[Function]} |
||||
type="text" |
||||
value="loading" |
||||
/> |
||||
Save |
||||
</button> |
||||
<button |
||||
className="btn btn-danger" |
||||
disabled={false} |
||||
onClick={[Function]} |
||||
</div> |
||||
<div |
||||
className="gf-form-button-row" |
||||
> |
||||
<i |
||||
className="fa fa-trash" |
||||
/> |
||||
Delete |
||||
</button> |
||||
</div> |
||||
</form> |
||||
<button |
||||
className="btn btn-success" |
||||
disabled={true} |
||||
type="submit" |
||||
> |
||||
<i |
||||
className="fa fa-save" |
||||
/> |
||||
Save |
||||
</button> |
||||
<button |
||||
className="btn btn-danger" |
||||
disabled={false} |
||||
onClick={[Function]} |
||||
> |
||||
<i |
||||
className="fa fa-trash" |
||||
/> |
||||
Delete |
||||
</button> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</PageContents> |
||||
</Page> |
||||
`; |
||||
|
Loading…
Reference in new issue