File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { PropertiesTable } from '~/ui/lib/PropertiesTable'
2626import { ResourceLabel } from '~/ui/lib/SideModal'
2727import { Truncate } from '~/ui/lib/Truncate'
2828import { pb } from '~/util/path-builder'
29+ import { capitalize } from '~/util/str'
2930import { bytesToGiB } from '~/util/units'
3031
3132EditProjectImageSideModalForm . loader = async ( { params } : LoaderFunctionArgs ) => {
@@ -69,12 +70,14 @@ export function EditImageSideModalForm({
6970} ) {
7071 const navigate = useNavigate ( )
7172 const form = useForm ( { defaultValues : image } )
73+ const resourceName = type === 'Project' ? 'project image' : 'silo image'
7274
7375 return (
7476 < SideModalForm
77+ title = { capitalize ( resourceName ) }
7578 form = { form }
7679 formType = "edit"
77- resourceName = { type === 'Project' ? 'project image' : 'silo image' }
80+ resourceName = { resourceName }
7881 onDismiss = { ( ) => navigate ( dismissLink ) }
7982 subtitle = {
8083 < ResourceLabel >
@@ -100,7 +103,6 @@ export function EditImageSideModalForm({
100103 < DateTime date = { image . timeModified } />
101104 </ PropertiesTable . Row >
102105 </ PropertiesTable >
103-
104106 < NameField name = "name" control = { form . control } disabled />
105107 < DescriptionField name = "description" control = { form . control } required disabled />
106108 < TextField name = "os" label = "OS" control = { form . control } required disabled />
You can’t perform that action at this time.
0 commit comments