Skip to content

Commit fc9107c

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
Use addressLabel in the UI.
- for the boards dropdown, and - for the `Tools` > `Port` menu. Closes #1331 Signed-off-by: Akos Kitta <[email protected]>
1 parent 474d5e5 commit fc9107c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: arduino-ide-extension/src/browser/boards/boards-toolbar-item.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class BoardsDropDown extends React.Component<BoardsDropDown.Props> {
138138
{boardLabel}
139139
</div>
140140
<div className="arduino-boards-dropdown-item--port-label noWrapInfo noselect">
141-
{port.address}
141+
{port.addressLabel}
142142
</div>
143143
</div>
144144
{selected ? <div className="fa fa-check" /> : ''}

Diff for: arduino-ide-extension/src/browser/contributions/board-selection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ PID: ${PID}`;
288288
for (let i = 0; i < sortedIDs.length; i++) {
289289
const portID = sortedIDs[i];
290290
const [port, boards] = ports[portID];
291-
let label = `${port.address}`;
291+
let label = `${port.addressLabel}`;
292292
if (boards.length) {
293293
const boardsList = boards.map((board) => board.name).join(', ');
294294
label = `${label} (${boardsList})`;

0 commit comments

Comments
 (0)