import React from 'react' class ConfigList extends React.Component { constructor() { super() this.handleChange = this.handleChange.bind(this) } componentDidMount () { console.log('ConfigList did mount', this) const { configGetRequest } = this.props.configActions configGetRequest() } handleChange (event) { event.preventDefault() const { configChangeForm } = this.props.configActions const nextConfig = { _id: this.configid ? this.configid.value : null, key: this.key.value, description: this.description.value, value: this.value.value } configChangeForm(nextConfig) } render () { const state = this.props.config const actions = this.props.configActions const config = state.configForm return (
Schluessel | Beschreibung | Wert | Wert |
---|---|---|---|
{configData.key} | {configData.description} | {configData.value} | actions.configLoadForm(key)}>editieren actions.configDeleteRequest(key)}>loeschen |