diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-21 14:38:57 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-21 14:38:57 -0700 |
commit | 2a92a5611cfb2caaf0329f485d042cbaedfe0e24 (patch) | |
tree | 3894aa09466b5b1684d670f3e7d483ce1a84842f /ui/src/components/site-form.tsx | |
parent | 016920aeb7dc47f32412829c70b872c54caf10e3 (diff) |
Add site editing.
- Fixes #96
Diffstat (limited to 'ui/src/components/site-form.tsx')
-rw-r--r-- | ui/src/components/site-form.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/components/site-form.tsx b/ui/src/components/site-form.tsx index 55da1667..9c0f472b 100644 --- a/ui/src/components/site-form.tsx +++ b/ui/src/components/site-form.tsx @@ -24,6 +24,12 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> { constructor(props: any, context: any) { super(props, context); this.state = this.emptyState; + if (this.props.site) { + this.state.siteForm = { + name: this.props.site.name, + description: this.props.site.description, + } + } } componentDidMount() { |