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

Add running indicator on cant close selector #3005

Merged
merged 3 commits into from
Nov 30, 2020
Merged

Conversation

vctt94
Copy link
Member

@vctt94 vctt94 commented Nov 26, 2020

This PR adds the running indicator selector into the can't close selector.

This way decrediton will not allowed to be closed if it is perfoming any action represented by the running indicator: Ticket auto buyer, running mixer or purchasing tickets

@alexlyp
Copy link
Member

alexlyp commented Nov 27, 2020

Hrm overall it's OK. But the modal that I'm seeing when the mixer is running references the auto-buyer. Can we do specific modal title/text depending on what's running?

<div className={style.confirmContent}>
<T
id="account.mixer.running.message"
m="Account mixer is running. If closed no more dcr will be mixed.
Copy link
Member

Choose a reason for hiding this comment

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

no more dcr will be mixed

Is this really the only consequence if Decrediton is closed while the mixer is running? I thought there was more at risk.

Regardless, I suggest rewording to:

Account mixer is currently running. Ongoing mixes will be cancelled and no more Decred will be mixed if Decrediton is closed now.

{
<T
id="account.mixer.running.btnConfirm"
m="Confirm"
Copy link
Member

Choose a reason for hiding this comment

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

Rather than Confirm, lets explicitly say this button will Close Decrediton

{
<T
id="tickets.purchasing.confirmModal.btnConfirm"
m="Confirm"
Copy link
Member

Choose a reason for hiding this comment

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

Close Decrediton

<div className={style.confirmContent}>
<T
id="tickets.purchasing.message"
m="Decrediton is finishing the purchasing ticket process and should wait."
Copy link
Member

Choose a reason for hiding this comment

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

Decrediton is still finalizing ticket purchases. Tickets may not be registered with the VSP if Decrediton is closed now, which can result in missed votes.

@jholdstock
Copy link
Member

Works well, just a couple of suggested changes to strings.

@alexlyp alexlyp merged commit 3916079 into decred:master Nov 30, 2020
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