Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[menu-bar] prevent multiple "launch" clicks, add indicator when booting #29

Merged
merged 3 commits into from Aug 10, 2023

Conversation

Simek
Copy link
Collaborator

@Simek Simek commented Aug 10, 2023

Why

It was possible to click "Launch" button multiple time for a device, which lead to restarting the same emulator/simulator and delaying the actual launch.

How

After first press replace the button with launching label, await for boot command to finish, to hide label.

Test Plan

The changes have been tested by running Orbit app locally.

Preview

Kapture.2023-08-10.at.17.31.16.mp4

Copy link
Member

@gabrieldonadel gabrieldonadel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few comments

apps/menu-bar/src/components/DeviceItem.tsx Outdated Show resolved Hide resolved
apps/menu-bar/src/components/Button.tsx Show resolved Hide resolved
apps/menu-bar/src/components/DeviceItem.tsx Outdated Show resolved Hide resolved
@Simek Simek force-pushed the @simek/prevent-multiple-launch-clicks branch from e4eeafe to c81f421 Compare August 10, 2023 16:35
Copy link
Member

@gabrieldonadel gabrieldonadel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Simek Simek merged commit d3de230 into main Aug 10, 2023
@Simek Simek deleted the @simek/prevent-multiple-launch-clicks branch August 10, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants