8000 Change connect button label based on app state · arduino/lab-micropython-editor@3845458 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3845458

Browse files
committed
Change connect button label based on app state
1 parent 213303e commit 3845458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/arduino/components/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function Toolbar(state, emit) {
22
const connect = Button({
33
icon: state.isConnected ? 'icons/Connect.svg' : 'icons/Disconnect.svg',
4-
label: 'Connect',
4+
label: state.isConnected ? 'Disconnect' : 'Connect',
55
disabled: false,
66
onclick: () => emit('open-port-dialog'),
77
color: 'default'

0 commit comments

Comments
 (0)
0