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

"Replace Generator" button #623

Open
dpgraham4401 opened this issue Oct 27, 2023 · 0 comments
Open

"Replace Generator" button #623

dpgraham4401 opened this issue Oct 27, 2023 · 0 comments
Labels
bug Something isn't working client Related to front end workings (React/Redux) good first issue Good for newcomers

Comments

@dpgraham4401
Copy link
Member

dpgraham4401 commented Oct 27, 2023

🐛 Bug Report

On a manifest, the user have the option to replace the generator if the following is true.

  1. The manifest status is one of the below
    • Draft (the value of status is actually NotAssigned)
    • Pending
    • Any status beyond these and the user should not be able to modify the generator
      AND
  2. The user has access to one of the other sites on the manifest (one of the transporters or the TSDF).
    • The sites the user has access to is in the redux store (RcraProfile)
      AND
  3. The manifest is in a editable mode (not readonly).

When the button is clicked, it should bring up the handler search form (the same form that's brought up for a new manifest that does not already have a generator).
image

If someone is working on this besides me, it may help to log into the django admin page (at http://localhost:8000) and change the site type of the VATESTGEN001 from Generator to Tsdf. That way when a new manifest is created with this site it doesn't default as the generator.

@dpgraham4401 dpgraham4401 added bug Something isn't working client Related to front end workings (React/Redux) labels Oct 27, 2023
@github-project-automation github-project-automation bot moved this to 🆕 ToDo in Haztrak Oct 27, 2023
@dpgraham4401 dpgraham4401 changed the title Change Generator Button "Replace Generator" button Oct 27, 2023
@dpgraham4401 dpgraham4401 added the good first issue Good for newcomers label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working client Related to front end workings (React/Redux) good first issue Good for newcomers
Projects
No open projects
Status: 🆕 ToDo
Development

No branches or pull requests

1 participant