更新 'src/components/users.js'
This commit is contained in:
parent
72bc40f322
commit
b2d1dc0be1
@ -9,7 +9,6 @@ import PermMediaIcon from "@material-ui/icons/PermMedia";
|
|||||||
import PersonPinIcon from "@material-ui/icons/PersonPin";
|
import PersonPinIcon from "@material-ui/icons/PersonPin";
|
||||||
import SettingsInputComponentIcon from "@material-ui/icons/SettingsInputComponent";
|
import SettingsInputComponentIcon from "@material-ui/icons/SettingsInputComponent";
|
||||||
import ViewListIcon from "@material-ui/icons/ViewList";
|
import ViewListIcon from "@material-ui/icons/ViewList";
|
||||||
import { FunctionField } from 'react-admin';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ArrayInput,
|
ArrayInput,
|
||||||
@ -473,9 +472,9 @@ export const UserEdit = props => {
|
|||||||
</FormTab>
|
</FormTab>
|
||||||
|
|
||||||
<FormTab
|
<FormTab
|
||||||
label={translate("resources.p3url.name", { smart_count: 2 })}
|
label={translate("resources.urlpreview.name", { smart_count: 2 })}
|
||||||
icon={<PermMediaIcon />}
|
icon={<PermMediaIcon />}
|
||||||
path="urlpreview"
|
path="user_urlpreview"
|
||||||
>
|
>
|
||||||
<ReferenceManyField
|
<ReferenceManyField
|
||||||
reference="user_urlpreview"
|
reference="user_urlpreview"
|
||||||
@ -486,15 +485,11 @@ export const UserEdit = props => {
|
|||||||
sort={{ field: "created_ts", order: "DESC" }}
|
sort={{ field: "created_ts", order: "DESC" }}
|
||||||
>
|
>
|
||||||
<Datagrid style={{ width: "100%" }}>
|
<Datagrid style={{ width: "100%" }}>
|
||||||
<DateField source="created_ts" showTime options={date_format} />
|
<DateField source="created_ts" showTime options={date_format} sortable={false} />
|
||||||
<TextField source="media_id" />
|
<TextField source="media_id" sortable={false} />
|
||||||
<TextField source="url_cache" />
|
<TextField source="url_cache" sortable={false} />
|
||||||
|
|
||||||
</Datagrid>
|
</Datagrid>
|
||||||
|
|
||||||
|
|
||||||
</ReferenceManyField>
|
</ReferenceManyField>
|
||||||
|
|
||||||
</FormTab>
|
</FormTab>
|
||||||
|
|
||||||
<FormTab
|
<FormTab
|
||||||
|
Loading…
Reference in New Issue
Block a user