diff --git a/app/forms/image-edit.tsx b/app/forms/image-edit.tsx index 85bf2ba27..ace71abf7 100644 --- a/app/forms/image-edit.tsx +++ b/app/forms/image-edit.tsx @@ -26,6 +26,7 @@ import { PropertiesTable } from '~/ui/lib/PropertiesTable' import { ResourceLabel } from '~/ui/lib/SideModal' import { Truncate } from '~/ui/lib/Truncate' import { pb } from '~/util/path-builder' +import { capitalize } from '~/util/str' import { bytesToGiB } from '~/util/units' EditProjectImageSideModalForm.loader = async ({ params }: LoaderFunctionArgs) => { @@ -69,12 +70,14 @@ export function EditImageSideModalForm({ }) { const navigate = useNavigate() const form = useForm({ defaultValues: image }) + const resourceName = type === 'Project' ? 'project image' : 'silo image' return ( navigate(dismissLink)} subtitle={ @@ -100,7 +103,6 @@ export function EditImageSideModalForm({ -