Skip to content

[BUG] Manage case conflicts with other buttons on dialog #1052

@jasonwuwrf

Description

@jasonwuwrf

Describe the bug
When you click the "Manage" case button you are taken to a read only display of the case "manage" properties, which includes a "Delete case", "Close Case" and/or "Reopen Case" buttons on the bottom of the dialog. When you click on "Edit", or go directly to edit by clicking on the "State" badge, the bottom of the dialog then gets "Cancel" and "Save" buttons added. At this point the user can make changes to the case "manage" properties and is expected to save or cancel. However, the user can make changes and then click "Close case" believe it will save the changes they made and it will not do that. When the case is in closed status, the reopen button and delete case are pull-right, this should be consistent and be to the left as is the delete case and close case buttons.

To Reproduce
Steps to reproduce the behavior:

  1. Go to case properties
  2. Click on edit
  3. Make a change to the case, i.e. set the outcome
  4. Click "Close case" and confirm
  5. Confirm that the changes made are lost

Expected behavior
Remove the "Delete Case", "Close Case" and "Reopen Case" buttons from the edit dialog, they should only appear on the read only display of case data dialog.

Screenshots

Remove from edit dialog:
Image

Position is OK:
Image

Remove from edit dialog:
Image

Presence OK, but shift to the left instead of pull-right:
Image

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions