delete photo then redirect to landing page
This commit is contained in:
parent
f484ec40d3
commit
fd325afe4f
@ -17,7 +17,7 @@
|
|||||||
</button>
|
</button>
|
||||||
@if (Model.IdentificationDocument_UID != Guid.Empty)
|
@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>
|
<i class="fa fa-times me-2"></i>
|
||||||
DELETE
|
DELETE
|
||||||
</button>
|
</button>
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
jfa.utilities.request.post(url, {})
|
jfa.utilities.request.post(url, {})
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
if (resp.ok === true) {
|
if (resp.ok === true) {
|
||||||
jfa.page.reload();
|
location.href = "/";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user