Fix nameFormat in SamlItem

This commit is contained in:
Yang Luo
2024-01-13 15:19:15 +08:00
parent 8968396ae5
commit 37748850c8
27 changed files with 44 additions and 86 deletions

View File

@ -38,7 +38,7 @@ class SamlAttributeTable extends React.Component {
}
addRow(table) {
const row = {Name: "", nameformat: "", value: ""};
const row = {Name: "", nameFormat: "", value: ""};
if (table === undefined || table === null) {
table = [];
}
@ -64,7 +64,7 @@ class SamlAttributeTable extends React.Component {
renderTable(table) {
const columns = [
{
title: i18next.t("user:Name"),
title: i18next.t("general:Name"),
dataIndex: "name",
key: "name",
width: "200px",
@ -77,9 +77,9 @@ class SamlAttributeTable extends React.Component {
},
},
{
title: i18next.t("user:Name format"),
dataIndex: "nameformat",
key: "nameformat",
title: i18next.t("general:Name format"),
dataIndex: "nameFormat",
key: "nameFormat",
width: "200px",
render: (text, record, index) => {
return (
@ -87,7 +87,7 @@ class SamlAttributeTable extends React.Component {
value={text}
defaultValue="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"
onChange={value => {
this.updateField(table, index, "nameformat", value);
this.updateField(table, index, "nameFormat", value);
}} >
<Option key="Unspecified" value="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">Unspecified</Option>
<Option key="Basic" value="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">Basic</Option>
@ -98,7 +98,7 @@ class SamlAttributeTable extends React.Component {
},
},
{
title: i18next.t("user:Value"),
title: i18next.t("webhook:Value"),
dataIndex: "value",
key: "value",
width: "200px",