Add Prompted field.

This commit is contained in:
Yang Luo
2021-06-18 02:02:43 +08:00
parent ce60a76920
commit 32afafd56c
4 changed files with 34 additions and 0 deletions

View File

@ -122,6 +122,19 @@ class ProviderTable extends React.Component {
)
}
},
{
title: i18next.t("provider:prompted"),
dataIndex: 'prompted',
key: 'prompted',
width: '120px',
render: (text, record, index) => {
return (
<Switch checked={text} onChange={checked => {
this.updateField(table, index, 'prompted', checked);
}} />
)
}
},
{
title: i18next.t("provider:alertType"),
dataIndex: 'alertType',

View File

@ -102,6 +102,8 @@ class SignupTable extends React.Component {
this.updateField(table, index, 'visible', checked);
if (!checked) {
this.updateField(table, index, 'required', false);
} else {
this.updateField(table, index, 'required', true);
}
}} />
)
@ -124,6 +126,23 @@ class SignupTable extends React.Component {
)
}
},
{
title: i18next.t("provider:prompted"),
dataIndex: 'prompted',
key: 'prompted',
width: '120px',
render: (text, record, index) => {
if (record.visible) {
return null;
}
return (
<Switch checked={text} onChange={checked => {
this.updateField(table, index, 'prompted', checked);
}} />
)
}
},
{
title: i18next.t("provider:rule"),
dataIndex: 'rule',