Skip to content

Commit d609180

Browse files
committed
Move button to primary toolbar actions
1 parent 3f2636e commit d609180

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

ui/arduino/views/components/toolbar.js

+9-12
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ function Toolbar(state, emit) {
6969
disabled: !_canSave,
7070
onClick: () => emit('save')
7171
})}
72+
<div class="separator"></div>
73+
${!window.BridgeWindow.isLinux() ? Button({
74+
icon: 'install-package.svg',
75+
label: `Add Package`,
76+
onClick: () => {
77+
if(state.isConnected) emit('disconnect') // Package installer requires exclusive access to the serial port
78+
emit('launch-app', 'micropython-package-installer://', 'https://github.com/arduino/lab-micropython-package-installer/releases/latest')
79+
}
80+
}) : '' }
7281
</div>
7382
7483
<div id="app-views">
@@ -90,18 +99,6 @@ function Toolbar(state, emit) {
9099
})}
91100
92101
</div>
93-
94-
<div>
95-
${!window.BridgeWindow.isLinux() ? Button({
96-
icon: 'install-package.svg',
97-
label: `Install Package`,
98-
active: true,
99-
onClick: () => {
100-
if(state.isConnected) emit('disconnect') // Package installer requires exclusive access to the serial port
101-
emit('launch-app', 'micropython-package-installer://', 'https://github.com/arduino/lab-micropython-package-installer/releases/latest')
102-
}
103-
}) : '' }
104-
</div>
105102
</div>
106103
`
107104
}

0 commit comments

Comments
 (0)