Skip to content

Commit

Permalink
Add button to launch package installer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebromero committed Dec 18, 2024
1 parent 3ce9217 commit 7f06f57
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ui/arduino/media/install-package.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ui/arduino/views/components/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ function Toolbar(state, emit) {
active: state.view === 'file-manager',
onClick: () => emit('change-view', 'file-manager')
})}
${Button({
icon: 'install-package.svg',
tooltip: `Install Package`,
active: true,
onClick: () => {
if(state.isConnected) emit('disconnect')
emit('launch-app', 'micropython-package-installer://', 'https://github.com/arduino/lab-micropython-package-installer/releases/latest')
}
})}
</div>
`
}

0 comments on commit 7f06f57

Please sign in to comment.