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

Reset the farm name value in the create farm dialog #3503

Merged
merged 4 commits into from
Oct 20, 2024

Conversation

samaradel
Copy link
Contributor

@samaradel samaradel commented Oct 3, 2024

Description

Reset the farm name value in the create farm dialog on submit and on close.

Changes

Screencast.from.03-10-24.15.29.28.webm

Related Issues

Tested Scenarios

  • Create a farm and open the dialog again after closing.
  • open the create farm dialog, insert the farm, close the dialog without submitting then open it again.

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

@samaradel samaradel changed the title Reset create farm dialog after submit and on close Reset the farm name value in the create farm dialog Oct 3, 2024
color="anchor"
@click="
showDialogue = false;
$emit('update:name', '');
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we pass the name to the parent it is not used as i see, i think this behavior need some refactor, no need to bind the farm name here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's just a reset for farm name on close

Copy link
Contributor

Choose a reason for hiding this comment

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

we can just remove the name prop, it will reset the farm name.
we are not using the name on the parent component

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I did it disappeared on blur before submit / close.

Copy link
Contributor

Choose a reason for hiding this comment

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

this is not related to props, this related to the dialog component, u can try to add persistent to the dialog component

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@samaradel samaradel requested a review from 0oM4R October 7, 2024 10:12
@samaradel samaradel marked this pull request as draft October 9, 2024 09:28
@samaradel samaradel marked this pull request as ready for review October 9, 2024 10:06
Copy link
Contributor

@0oM4R 0oM4R left a comment

Choose a reason for hiding this comment

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

@samaradel samaradel marked this pull request as draft October 13, 2024 08:46
@samaradel samaradel marked this pull request as ready for review October 13, 2024 10:50
@samaradel samaradel requested a review from 0oM4R October 13, 2024 10:51
Copy link
Contributor

@0oM4R 0oM4R left a comment

Choose a reason for hiding this comment

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

please resolve the conflicts

@samaradel samaradel requested a review from 0oM4R October 17, 2024 10:35
@samaradel samaradel merged commit b3e5bd8 into development Oct 20, 2024
10 checks passed
@samaradel samaradel deleted the development_farms branch October 20, 2024 07:42
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