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

[various] Disable buttons when mixing, autobuyer or purchase tickets running #3231

Merged
merged 6 commits into from
Feb 18, 2021

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Feb 16, 2021

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.

Copy link
Member

@amass01 amass01 left a 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
Copy link
Member

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.

Copy link
Member Author

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 ?

Copy link
Member

Choose a reason for hiding this comment

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

extra line

Copy link
Member

@vctt94 vctt94 left a comment

Choose a reason for hiding this comment

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

tACK

@alexlyp alexlyp merged commit 300ef35 into decred:master Feb 18, 2021
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.

3 participants