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

Restores asset_class disable edit logic #5750

Merged
merged 2 commits into from
Jun 22, 2023
Merged

Restores asset_class disable edit logic #5750

merged 2 commits into from
Jun 22, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Jun 22, 2023

WHAT

🤖 Generated by Copilot at d14c4a1

Prevent changing asset class of existing assets in asset creation form. Disable asset class field in AssetCreate.tsx if asset id and asset class props are given.

Proposed Changes

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at d14c4a1

  • Disable the asset class field in the asset creation form if the asset id and asset class are already provided as props (link). This prevents changing the asset class of an existing asset in src/Components/Facility/AssetCreate.tsx.

@rithviknishad rithviknishad requested a review from a team June 22, 2023 05:02
@rithviknishad rithviknishad requested a review from a team as a code owner June 22, 2023 05:02
@vercel
Copy link

vercel bot commented Jun 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2023 11:13am

@rithviknishad rithviknishad added urgent needs testing P1 breaking issue or vital feature labels Jun 22, 2023
@netlify
Copy link

netlify bot commented Jun 22, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit cda44b0
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64942ca608ac9f000840ddff
😎 Deploy Preview https://deploy-preview-5750--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jun 22, 2023
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit 8cf274f into develop Jun 22, 2023
@khavinshankar khavinshankar deleted the fix-5748 branch June 22, 2023 11:12
@github-actions
Copy link

@rithviknishad We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress failed pull request with cypress test failure P1 breaking issue or vital feature tested urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore asset_class edit disable logic. It went missing
3 participants