feat: can delete the whole SigninMethodTable

This commit is contained in:
Yang Luo
2024-02-06 16:43:16 +08:00
parent 167c1b0f1b
commit 06ef97a080
2 changed files with 2 additions and 6 deletions

View File

@ -163,7 +163,7 @@ class SigninMethodTable extends React.Component {
<Button style={{marginRight: "5px"}} disabled={index === table.length - 1} icon={<DownOutlined />} size="small" onClick={() => this.downRow(table, index)} />
</Tooltip>
<Tooltip placement="topLeft" title={i18next.t("general:Delete")}>
<Button icon={<DeleteOutlined />} size="small" disabled={table.length <= 1} onClick={() => this.deleteRow(items, table, index)} />
<Button icon={<DeleteOutlined />} size="small" onClick={() => this.deleteRow(items, table, index)} />
</Tooltip>
</div>
);