Fix KAN-3 project template flows
linter / quality (pull_request) Successful in 1m31s
tests / ci (8.4) (pull_request) Successful in 1m47s

This commit is contained in:
2026-06-24 01:16:25 +02:00
parent c19cf34505
commit d250f0b380
14 changed files with 144 additions and 92 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,
});
};