mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
fix: add "Is used" to verification list page
This commit is contained in:
parent
dfa4503f24
commit
d9e44c1f2d
@ -19,7 +19,7 @@ import * as VerificationBackend from "./backend/VerificationBackend";
|
|||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import {Link} from "react-router-dom";
|
import {Link} from "react-router-dom";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import {Table} from "antd";
|
import {Switch, Table} from "antd";
|
||||||
|
|
||||||
class VerificationListPage extends BaseListPage {
|
class VerificationListPage extends BaseListPage {
|
||||||
newVerification() {
|
newVerification() {
|
||||||
@ -146,6 +146,18 @@ class VerificationListPage extends BaseListPage {
|
|||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps("code"),
|
...this.getColumnSearchProps("code"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: i18next.t("verification:Is used"),
|
||||||
|
dataIndex: "isUsed",
|
||||||
|
key: "isUsed",
|
||||||
|
width: "90px",
|
||||||
|
sorter: true,
|
||||||
|
render: (text, record, index) => {
|
||||||
|
return (
|
||||||
|
<Switch disabled checkedChildren="ON" unCheckedChildren="OFF" checked={text} />
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const paginationProps = {
|
const paginationProps = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user