Skip to content

#127 adding cancel button#213

Open
CiTRuS93 wants to merge 8 commits into
guytepper:masterfrom
CiTRuS93:master
Open

#127 adding cancel button#213
CiTRuS93 wants to merge 8 commits into
guytepper:masterfrom
CiTRuS93:master

Conversation

@CiTRuS93
Copy link
Copy Markdown
Contributor

No description provided.

editMode = null,
isAdmin,
}) {
let history = useHistory();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
let history = useHistory();
const history = useHistory();

}, [coordinatesUpdater]);

const onCancel = () => {
history.goBack();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Pardon, I take back my words about the confirmation message.

Add a confirm dialog that says "המידע שהזנת לא יישמר. לחזור אחורה?"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was prepared for that 😃

@guytepper guytepper linked an issue Nov 18, 2020 that may be closed by this pull request
@CiTRuS93 CiTRuS93 requested a review from guytepper November 24, 2020 10:44
Copy link
Copy Markdown
Owner

@guytepper guytepper left a comment

Choose a reason for hiding this comment

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

Hi - some final adjustments:

  • Change the button color to red (use tomato).
  • Make sure when pressing cancel it goes to the protest page - if the user has just signed in it will return to the sign in page

@CiTRuS93
Copy link
Copy Markdown
Contributor Author

* Make sure when pressing cancel it goes to the protest page - if the user has just signed in it will return to the sign in page

Hey there, sorry but I didn't manage to figure out how user can go to the protestForm after signing in.

@guytepper
Copy link
Copy Markdown
Owner

They should go to the protest page; you can take the protest id from the pathname and use it to get to the protest page

@CiTRuS93 CiTRuS93 requested a review from guytepper December 7, 2020 07:14
Copy link
Copy Markdown
Owner

@guytepper guytepper left a comment

Choose a reason for hiding this comment

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

Hey @CiTRuS93, have you seen #213 (comment) ?

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.

Add cancel button to edit protest page

2 participants