Re-add notifications registered page

This commit is contained in:
Eli Ribble 2026-04-28 05:30:08 +00:00
parent 82b313f62f
commit 68adab88bc
No known key found for this signature in database
5 changed files with 205 additions and 7 deletions

View file

@ -275,6 +275,7 @@
import { ref, onMounted } from "vue";
import { computedAsync } from "@vueuse/core";
import { useRouter } from "vue-router";
import { useRoutes } from "@/rmo/route/use";
import { useStoreDistrict } from "@/rmo/store/district";
import { useStorePublicReport } from "@/store/publicreport";
import type { District, PublicReport } from "@/type/api";
@ -305,6 +306,7 @@ const formData = ref<FormData>({
subscribe: false,
});
const router = useRouter();
const routes = useRoutes();
const storeDistrict = useStoreDistrict();
const storePublicReport = useStorePublicReport();
@ -332,7 +334,7 @@ const handleSubmit = async () => {
if (response.ok) {
// Handle success (e.g., show a success message)
console.log("Form submitted successfully");
router.push(routes.RegisterNotificationsComplete(props.id));
} else {
// Handle error
console.error("Form submission failed");