We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1420c9b commit eb37f68Copy full SHA for eb37f68
arduino-ide-extension/src/browser/library/library-list-widget.ts
@@ -201,8 +201,9 @@ class MessageBoxDialog extends AbstractDialog<MessageBoxDialog.Result> {
201
options.buttons || [nls.localize('vscode/issueMainService/ok', 'OK')]
202
).forEach((text, index) => {
203
const button = this.createButton(text);
204
- const i = options.buttons ? options.buttons?.length - 1 : 0;
205
- button.classList.add(index === i ? 'main' : 'secondary');
+ const isPrimaryButton =
+ index === (options.buttons ? options.buttons?.length - 1 : 0);
206
+ button.classList.add(isPrimaryButton ? 'main' : 'secondary');
207
this.controlPanel.appendChild(button);
208
this.toDisposeOnDetach.push(
209
addEventListener(button, 'click', () => {
0 commit comments