Skip to content

Commit 1420c9b

Browse files
accept button on the right for new sketch dialog
1 parent 3e435b4 commit 1420c9b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

arduino-ide-extension/src/browser/theia/workspace/workspace-input-dialog.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ export class WorkspaceInputDialog extends TheiaWorkspaceInputDialog {
1414
constructor(
1515
@inject(WorkspaceInputDialogProps)
1616
protected override readonly props: WorkspaceInputDialogProps,
17-
@inject(LabelProvider) protected override readonly labelProvider: LabelProvider
17+
@inject(LabelProvider)
18+
protected override readonly labelProvider: LabelProvider
1819
) {
1920
super(props, labelProvider);
20-
this.appendCloseButton(
21-
nls.localize('vscode/issueMainService/cancel', 'Cancel')
22-
);
21+
if (this.acceptButton) {
22+
this.controlPanel.removeChild(this.acceptButton);
23+
this.appendCloseButton(
24+
nls.localize('vscode/issueMainService/cancel', 'Cancel')
25+
);
26+
this.appendAcceptButton();
27+
}
2328
}
2429

2530
protected override appendParentPath(): void {

0 commit comments

Comments
 (0)