Add concern page to mailer compliance flow

This commit is contained in:
Eli Ribble 2026-04-22 21:22:03 +00:00
parent b5923137a7
commit a8819c907e
No known key found for this signature in database
11 changed files with 206 additions and 124 deletions

View file

@ -6,6 +6,7 @@ import {
PublicReport,
type PublicReportComplianceCreateRequest,
type PublicReportDTO,
type PublicReportUpdate,
} from "@/type/api";
export const useStorePublicReport = defineStore("publicreport", () => {
@ -64,6 +65,13 @@ export const useStorePublicReport = defineStore("publicreport", () => {
throw err;
}
}
async function update(
uri: string,
updates: PublicReportUpdate,
): Promise<PublicReport> {
const resp = (await apiClient.JSONPut(uri, updates)) as PublicReportDTO;
return PublicReport.fromJSON(resp);
}
return {
// Actions
add,
@ -72,5 +80,6 @@ export const useStorePublicReport = defineStore("publicreport", () => {
createCompliance,
fetchByID,
fetchByURI,
update,
};
});