Skip to content

Commit

Permalink
Reorder methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jun 1, 2020
1 parent f2d40d8 commit 28be7d5
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/components/ResetRevertDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,31 +237,6 @@ export class ResetRevertDialog extends React.Component<
);
}

/**
* Sets the suspension state.
*
* @param bool - boolean indicating whether to suspend UI interaction
*/
private _suspend(bool: boolean): void {
if (this.props.suspend) {
this.setState({
suspend: bool
});
}
}

/**
* Sets the current component log message.
*
* @param msg - log message
*/
private _log(msg: ILogMessage): void {
this.setState({
alert: true,
log: msg
});
}

/**
* Callback invoked upon updating a commit message summary.
*
Expand Down Expand Up @@ -404,6 +379,31 @@ export class ResetRevertDialog extends React.Component<
});
};

/**
* Sets the suspension state.
*
* @param bool - boolean indicating whether to suspend UI interaction
*/
private _suspend(bool: boolean): void {
if (this.props.suspend) {
this.setState({
suspend: bool
});
}
}

/**
* Sets the current component log message.
*
* @param msg - log message
*/
private _log(msg: ILogMessage): void {
this.setState({
alert: true,
log: msg
});
}

/**
* Returns a default commit summary for reverting a commit.
*
Expand Down

0 comments on commit 28be7d5

Please sign in to comment.