Skip to content

Commit

Permalink
#1275 Git project configuration property
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Jul 29, 2024
1 parent e2240d5 commit dbfe2c6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {Form, Input} from "antd";
import {prefixedFormName} from "@components/form/formUtils";

export default function PropertyForm({prefix}) {
return (
<>
<Form.Item
label="Configuration"
extra="Name of the Git configuration in Ontrack"
name={prefixedFormName(prefix, ['configuration', 'name'])}
>
<Input/>
</Form.Item>
</>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default function FormPrepare(value) {
return {
...value,
configuration: value?.configuration?.name,
}
}

0 comments on commit dbfe2c6

Please sign in to comment.