提交 05c1edc2 编写于 作者: R rebornix

Re Microsoft/vscode-pull-request-github#652. Reply/Add comment button should...

Re Microsoft/vscode-pull-request-github#652. Reply/Add comment button should be enabled if the comment editor is not empty.
上级 ff14a20f
......@@ -334,7 +334,7 @@ export class ReviewZoneWidget extends ZoneWidget {
attachButtonStyler(button, this.themeService);
button.label = 'Add comment';
button.enabled = false;
button.enabled = model.getValueLength() > 0;
this._localToDispose.push(this._commentEditor.onDidChangeModelContent(_ => {
if (this._commentEditor.getValue()) {
button.enabled = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册