mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-16 23:13:50 +08:00
Restrict app edit page values.
This commit is contained in:
@ -99,6 +99,10 @@ class SignupTable extends React.Component {
|
||||
key: 'visible',
|
||||
width: '120px',
|
||||
render: (text, record, index) => {
|
||||
if (record.name === "ID") {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Switch checked={text} onChange={checked => {
|
||||
this.updateField(table, index, 'visible', checked);
|
||||
@ -134,6 +138,10 @@ class SignupTable extends React.Component {
|
||||
key: 'prompted',
|
||||
width: '120px',
|
||||
render: (text, record, index) => {
|
||||
if (record.name === "ID") {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (record.visible) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user