Make description of activity optional (#20)
This commit is contained in:
parent
8b2e21c3cf
commit
986fc64998
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user