File tree 2 files changed +5
-4
lines changed
arduino-ide-extension/src/browser 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -181,10 +181,10 @@ export class AdditionalUrlsDialog extends AbstractDialog<string[]> {
181
181
) ;
182
182
this . contentNode . appendChild ( anchor ) ;
183
183
184
- this . appendAcceptButton ( nls . localize ( 'vscode/issueMainService/ok' , 'OK' ) ) ;
185
184
this . appendCloseButton (
186
185
nls . localize ( 'vscode/issueMainService/cancel' , 'Cancel' )
187
186
) ;
187
+ this . appendAcceptButton ( nls . localize ( 'vscode/issueMainService/ok' , 'OK' ) ) ;
188
188
}
189
189
190
190
get value ( ) : string [ ] {
Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ export class LibraryListWidget extends ListWidget<
126
126
) ,
127
127
message,
128
128
buttons : [
129
- nls . localize ( 'arduino/library/installAll ' , 'Install all ' ) ,
129
+ nls . localize ( 'vscode/issueMainService/cancel ' , 'Cancel ' ) ,
130
130
nls . localize (
131
131
'arduino/library/installOnly' ,
132
132
'Install {0} only' ,
133
133
item . name
134
134
) ,
135
- nls . localize ( 'vscode/issueMainService/cancel ' , 'Cancel ' ) ,
135
+ nls . localize ( 'arduino/library/installAll ' , 'Install all ' ) ,
136
136
] ,
137
137
maxWidth : 740 , // Aligned with `settings-dialog.css`.
138
138
} ) . open ( ) ;
@@ -201,7 +201,8 @@ class MessageBoxDialog extends AbstractDialog<MessageBoxDialog.Result> {
201
201
options . buttons || [ nls . localize ( 'vscode/issueMainService/ok' , 'OK' ) ]
202
202
) . forEach ( ( text , index ) => {
203
203
const button = this . createButton ( text ) ;
204
- button . classList . add ( index === 0 ? 'main' : 'secondary' ) ;
204
+ const i = options . buttons ? options . buttons ?. length - 1 : 0 ;
205
+ button . classList . add ( index === i ? 'main' : 'secondary' ) ;
205
206
this . controlPanel . appendChild ( button ) ;
206
207
this . toDisposeOnDetach . push (
207
208
addEventListener ( button , 'click' , ( ) => {
You can’t perform that action at this time.
0 commit comments