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
|
- Add support for starting/stopping a timer
|
||||||
- Show hours as HH:MM or decimal in the Bubble, depending on setting in MOCO
|
- 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
|
## [1.2.2] - 2019-05-24
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "moco-browser-extensions",
|
"name": "moco-browser-extensions",
|
||||||
"description": "Browser plugin for MOCO",
|
"description": "Browser plugin for MOCO",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "yarn start:chrome",
|
"start": "yarn start:chrome",
|
||||||
|
@ -22,9 +22,7 @@ class Form extends Component {
|
|||||||
|
|
||||||
isValid = () => {
|
isValid = () => {
|
||||||
const { changeset } = this.props
|
const { changeset } = this.props
|
||||||
return ["assignment_id", "task_id", "hours", "description"]
|
return ["assignment_id", "task_id", "hours"].map(prop => changeset[prop]).every(Boolean)
|
||||||
.map(prop => changeset[prop])
|
|
||||||
.every(Boolean)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleTextareaKeyDown = event => {
|
handleTextareaKeyDown = event => {
|
||||||
|
Loading…
Reference in New Issue
Block a user