mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
feat: can delete the whole SigninMethodTable
This commit is contained in:
@ -41,11 +41,7 @@ func downloadImage(client *http.Client, url string) (*bytes.Buffer, string, erro
|
|||||||
|
|
||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
fmt.Printf("downloadImage() error for url [%s]: %s\n", url, resp.Status)
|
fmt.Printf("downloadImage() error for url [%s]: %s\n", url, resp.Status)
|
||||||
if resp.StatusCode == 404 {
|
return nil, "", nil
|
||||||
return nil, "", nil
|
|
||||||
} else {
|
|
||||||
return nil, "", fmt.Errorf("failed to download gravatar image: %s", resp.Status)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the content type and determine the file extension
|
// Get the content type and determine the file extension
|
||||||
|
@ -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)} />
|
<Button style={{marginRight: "5px"}} disabled={index === table.length - 1} icon={<DownOutlined />} size="small" onClick={() => this.downRow(table, index)} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip placement="topLeft" title={i18next.t("general:Delete")}>
|
<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>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user