Skip to content

Conversation

@daniel-manta-hee
Copy link
Contributor

JIRA link

https://hee-dls.atlassian.net/browse/DLSV2-560

Description

Fixing unsupported operation (http 405 error) caused by a mismatch of parameters being submitted to controller action RemoveSupervisorDelegate() method. Confirmation dialog is shown only when there are candidate assessments. So, depending on if there are candidate assessments, I am rendering a link to RemoveConfirm.cshtml or a post button for removing the delegate straightaway.

image

Despite views _StaffMemberCard.cshtml and RemoveConfirm.cshtml are using different models, I can call the same post method, since Hidden helper in the view allows me to set the name of individual fields in the post (unlike HiddenFor that takes the name from model).

Screenshots

image


Developer checks

Checked both scenarios: deleting a delegate straightaway or deleting with confirmation.
(although all Remove buttons look the same, by hovering over Remove button, a url is shown by the browser if it is a link)

@kevwhitt-hee kevwhitt-hee merged commit c64e569 into master Aug 3, 2022
@kevwhitt-hee kevwhitt-hee deleted the Develop/Features/DLSV2-560-RemoveStaffMemberFromMyStaffList branch August 3, 2022 15:09
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.

2 participants