|
|
|
@ -6,7 +6,9 @@ import { Container, Form, Header, Label, Message } from "semantic-ui-react"; |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
setFormWorktypeColor, |
|
|
|
|
setFormWorktypeLabel |
|
|
|
|
setFormWorktypeLabel, |
|
|
|
|
clearWorktypeRequestSuccess, |
|
|
|
|
clearWorktypeRequestError, |
|
|
|
|
} from "../../actions/worktype/reducer.actions"; |
|
|
|
|
import { |
|
|
|
|
updateWorktypeRequest, |
|
|
|
@ -23,6 +25,8 @@ class UpdateWorkTypeForm extends Component { |
|
|
|
|
componentWillUnmount = () => { |
|
|
|
|
this.props.dispatch(setFormWorktypeColor("")); |
|
|
|
|
this.props.dispatch(setFormWorktypeLabel("")); |
|
|
|
|
this.props.dispatch(clearWorktypeRequestSuccess()); |
|
|
|
|
this.props.dispatch(clearWorktypeRequestError()); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
changeColor = color => { |
|
|
|
|