File tree 1 file changed +9
-12
lines changed
ui/arduino/views/components
1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,15 @@ function Toolbar(state, emit) {
69
69
disabled : ! _canSave ,
70
70
onClick : ( ) => emit ( 'save' )
71
71
} ) }
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
+ } ) : '' }
72
81
</ div >
73
82
74
83
< div id ="app-views ">
@@ -90,18 +99,6 @@ function Toolbar(state, emit) {
90
99
} ) }
91
100
92
101
</ 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 >
105
102
</ div >
106
103
`
107
104
}
You can’t perform that action at this time.
0 commit comments