Make description of activity optional (#20)

This commit is contained in:
Manuel Bouza 2019-06-26 09:36:27 +02:00
parent 8b2e21c3cf
commit 986fc64998
3 changed files with 8 additions and 4 deletions

View File

@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add support for starting/stopping a timer
- Show hours as HH:MM or decimal in the Bubble, depending on setting in MOCO
## [1.2.3] - 2019-06-26
### Changed
- Description of activities are optional
## [1.2.2] - 2019-05-24
### Removed

View File

@ -1,7 +1,7 @@
{
"name": "moco-browser-extensions",
"description": "Browser plugin for MOCO",
"version": "1.2.2",
"version": "1.2.3",
"license": "MIT",
"scripts": {
"start": "yarn start:chrome",

View File

@ -22,9 +22,7 @@ class Form extends Component {
isValid = () => {
const { changeset } = this.props
return ["assignment_id", "task_id", "hours", "description"]
.map(prop => changeset[prop])
.every(Boolean)
return ["assignment_id", "task_id", "hours"].map(prop => changeset[prop]).every(Boolean)
}
handleTextareaKeyDown = event => {