delete photo then redirect to landing page

This commit is contained in:
jojo aquino 2025-04-27 11:24:01 +01:00
parent f484ec40d3
commit fd325afe4f
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
</button>
@if (Model.IdentificationDocument_UID != Guid.Empty)
{
<button type="button" class="btn btn-danger btn-lg identificationdocument__delete__button">
<button type="button" data-uid="@Model.IdentificationDocument_UID" class="btn btn-danger btn-lg identificationdocument__delete__button">
<i class="fa fa-times me-2"></i>
DELETE
</button>

View File

@ -47,7 +47,7 @@
jfa.utilities.request.post(url, {})
.then(resp => {
if (resp.ok === true) {
jfa.page.reload();
location.href = "/";
}
})
.catch(err => console.error(err));