Remove existing report URI when submission completes
This commit is contained in:
parent
8f494991e2
commit
a189348b36
2 changed files with 15 additions and 2 deletions
|
|
@ -26,9 +26,10 @@ body > .container-fluid {
|
|||
:is="Component"
|
||||
:district="district"
|
||||
@doAddress="doAddress"
|
||||
@doEvidence="doEvidence"
|
||||
@doContact="doContact"
|
||||
@doEvidence="doEvidence"
|
||||
@doPermission="doPermission"
|
||||
@doSubmit="doSubmit"
|
||||
v-model="report"
|
||||
/>
|
||||
</LoadingOverlay>
|
||||
|
|
@ -127,7 +128,11 @@ function doContact() {
|
|||
console.log("can't do contact, null report");
|
||||
return;
|
||||
}
|
||||
console.log("contact", report.value.reporter);
|
||||
console.log(
|
||||
"contact",
|
||||
JSON.stringify(report.value.reporter),
|
||||
report.value.reporter,
|
||||
);
|
||||
updateReport({
|
||||
reporter: report.value.reporter,
|
||||
});
|
||||
|
|
@ -147,6 +152,10 @@ function doPermission() {
|
|||
wants_scheduled: report.value.wants_scheduled,
|
||||
});
|
||||
}
|
||||
function doSubmit() {
|
||||
console.log("submit", report.value);
|
||||
storeLocal.delExistingComplianceReportURI();
|
||||
}
|
||||
async function fetchExistingReport(report_uri: string) {
|
||||
isLoading.value = true;
|
||||
const resp = await fetch(report_uri);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue