Fix KAN-3 project template flows

This commit is contained in:
2026-09-08 10:25:52 +00:00
parent db8855a056
commit fed6a282a4
13 changed files with 143 additions and 91 deletions
@@ -15,7 +15,11 @@ import {
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import AppLayout from '@/layouts/AppLayout.vue';
import { index as projectTemplatesIndex } from '@/routes/project-templates';
import {
edit as projectTemplatesEdit,
index as projectTemplatesIndex,
update as projectTemplatesUpdate,
} from '@/routes/project-templates';
import type { BreadcrumbItem, ProjectTemplatesEditPageProps } from '@/types';
const props = defineProps<ProjectTemplatesEditPageProps>();
@@ -27,7 +31,7 @@ const breadcrumbs: BreadcrumbItem[] = [
},
{
title: props.template.name,
href: `/project-templates/${props.template.id}/edit`,
href: projectTemplatesEdit(props.template.id),
},
];
@@ -48,7 +52,7 @@ const copyAreasError = computed(() => {
const linkedProjectCount = computed(() => props.template.linked_project_count ?? 0);
const submit = (): void => {
form.patch(`/project-templates/${props.template.id}`, {
form.patch(projectTemplatesUpdate.url(props.template.id), {
preserveScroll: true,
});
};