We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6169af0 + e332ddc commit ed3cf36Copy full SHA for ed3cf36
src/components/CommitBox.tsx
@@ -68,6 +68,11 @@ export class CommitBox extends React.Component<
68
*/
69
render(): React.ReactElement {
70
const disabled = !(this.props.hasFiles && this.state.summary);
71
+ const title = !this.props.hasFiles
72
+ ? 'Disabled: No files are staged for commit'
73
+ : !this.state.summary
74
+ ? 'Disabled: No commit message summary'
75
+ : 'Commit';
76
return (
77
<form className={commitFormClass}>
78
<input
@@ -90,7 +95,7 @@ export class CommitBox extends React.Component<
90
95
91
96
className={commitButtonClass}
92
97
type="button"
93
- title="Commit"
98
+ title={title}
94
99
value="Commit"
100
disabled={disabled}
101
onClick={this._onCommitClick}
0 commit comments