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

Show version name while deleting #4589

Merged
merged 10 commits into from
Oct 27, 2022
Merged

Show version name while deleting #4589

merged 10 commits into from
Oct 27, 2022

Conversation

suvekshyabhandari356
Copy link
Contributor

Fixes #4575

@gsmithun4 gsmithun4 added the run-ci CI is run only when this label is added label Oct 24, 2022
@gsmithun4
Copy link
Collaborator

deployed https://tj-4589.herokuapp.com/

@suvekshyabhandari356
Copy link
Contributor Author

Screenshot for reference:
Screen Shot 2022-10-24 at 8 43 58 PM

Copy link
Collaborator

@kavinvenkatachalam kavinvenkatachalam left a comment

Choose a reason for hiding this comment

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

@FroostyCodes Thanks for the PR.

Instead of looping and finding the name of the version, we can maintain it in the state. We already have a deletingVersionId state which can be changed to deletingVersion and maintain both { id: version.id, name: version.name } in the state. This avoids an unnecessary loop to find the name of the version.

frontend/src/Editor/AppVersionsManager.jsx Outdated Show resolved Hide resolved
frontend/src/Editor/AppVersionsManager.jsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@kavinvenkatachalam kavinvenkatachalam left a comment

Choose a reason for hiding this comment

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

LGTM

@Navaneeth-pk Navaneeth-pk merged commit 70df483 into ToolJet:develop Oct 27, 2022
@suvekshyabhandari356 suvekshyabhandari356 deleted the fix-4575/show-version-name branch October 27, 2022 07:15
@withshubh
Copy link
Contributor

Hey @FroostyCodes
Thanks for contributing to ToolJet. 🙌
Please submit the form to claim your Hacktoberfest swag: https://airtable.com/shr1qR6xhqsWO7LD7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted needs testing run-ci CI is run only when this label is added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

While deleting a version, show the name of version in the confirmation modal.
5 participants