forked from Archives/Athou_commafeed
display parent category name in category selects (fixes #1045)
This commit is contained in:
@@ -109,7 +109,12 @@ export function CategoryDetailsPage() {
|
||||
{editable && (
|
||||
<>
|
||||
<TextInput label={t`Name`} {...form.getInputProps("name")} required />
|
||||
<CategorySelect label={t`Parent Category`} {...form.getInputProps("parentId")} clearable />
|
||||
<CategorySelect
|
||||
label={t`Parent Category`}
|
||||
{...form.getInputProps("parentId")}
|
||||
clearable
|
||||
withoutCategoryIds={[id]}
|
||||
/>
|
||||
<NumberInput label={t`Position`} {...form.getInputProps("position")} required min={0} />
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user