|
@@ -1,6 +1,7 @@
|
|
|
import { useIntl } from "react-intl";
|
|
import { useIntl } from "react-intl";
|
|
|
import {
|
|
import {
|
|
|
ProForm,
|
|
ProForm,
|
|
|
|
|
+ ProFormDependency,
|
|
|
ProFormInstance,
|
|
ProFormInstance,
|
|
|
ProFormSelect,
|
|
ProFormSelect,
|
|
|
ProFormText,
|
|
ProFormText,
|
|
@@ -292,7 +293,12 @@ const TermEditWidget = ({
|
|
|
id: "term.fields.channel.label",
|
|
id: "term.fields.channel.label",
|
|
|
})}
|
|
})}
|
|
|
/>
|
|
/>
|
|
|
- <LangSelect />
|
|
|
|
|
|
|
+ <ProFormDependency name={["channel"]}>
|
|
|
|
|
+ {({ channel }) => {
|
|
|
|
|
+ console.log("channel", channel);
|
|
|
|
|
+ return <LangSelect disabled={channel[0] === "" ? false : true} />;
|
|
|
|
|
+ }}
|
|
|
|
|
+ </ProFormDependency>
|
|
|
</ProForm.Group>
|
|
</ProForm.Group>
|
|
|
<ProForm.Group>
|
|
<ProForm.Group>
|
|
|
<Form.Item
|
|
<Form.Item
|