-
Notifications
You must be signed in to change notification settings - Fork 120
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
[various] Disable buttons when mixing, autobuyer or purchase tickets running #3231
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -36,7 +36,9 @@ | |||
background-image: var(--menu-mixer-icon); | |||
background-size: 16px 16px; | |||
cursor: pointer; | |||
animation: spin 1s linear infinite; | |||
/* XXX Need a different animation method due to performance of this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a different .gif
? worth creating a separate issue I would say.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yah I'll leave this then call it out in an issue. There's this and the pending indicators on transactions on the overview that I've noticed be huge perf hogs.
@@ -31,6 +32,19 @@ const TicketAutoBuyerForm = ({ | |||
{isTicketAutoBuyerEnabled ? ( | |||
<AutoBuyerSwitch enabled onClick={onDisableTicketAutoBuyer} /> | |||
) : ( | |||
getRunningIndicator ? | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
To avoid issues and to help UX a bit, we should be disallowing various features to be run at the same time.
Currently when mixer, autobuyer or ticket purchases are running we disable all the other buttons as well as the send transactions.
I've also included a change to the sidebar running indicator css to remove the animation that has been shown to be really bad for performance.