Skip to content

Commit

Permalink
minor jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mollfpr committed Jun 14, 2022
1 parent 712e85a commit b1844d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/ContextMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class ContextMenuItem extends Component {
this.triggerPressAndUpdateSuccess = this.triggerPressAndUpdateSuccess.bind(this);
}

/**
* Called on button press and mark the run
*/
triggerPressAndUpdateSuccess() {
if (this.props.isDelayButtonStateComplete) {
return;
Expand Down
3 changes: 3 additions & 0 deletions src/components/HeaderWithCloseButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class HeaderWithCloseButton extends Component {
this.triggerButtonCompleteAndDownload = this.triggerButtonCompleteAndDownload.bind(this);
}

/**
* Called on download button press
*/
triggerButtonCompleteAndDownload() {
if (this.props.isDelayButtonStateComplete) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/components/withDelayToggleButtonState.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function (WrappedComponent) {
}

/**
* @param {Boolean} [resetAfterDelay] Impose delay before toggling state
* @param {Boolean} resetAfterDelay Impose delay before toggling state
*/
toggleDelayButtonState(resetAfterDelay) {
this.setState({
Expand Down

0 comments on commit b1844d3

Please sign in to comment.