mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-09 16:24:51 +00:00
Remove not needed translate
(#240)
This commit is contained in:
parent
74f77e6988
commit
42a4decc2a
2 changed files with 11 additions and 12 deletions
|
@ -269,7 +269,7 @@ const LoginPage = ({ theme }) => {
|
||||||
autoFocus
|
autoFocus
|
||||||
name="username"
|
name="username"
|
||||||
component={renderInput}
|
component={renderInput}
|
||||||
label={translate("ra.auth.username")}
|
label="ra.auth.username"
|
||||||
disabled={loading || !supportPassAuth}
|
disabled={loading || !supportPassAuth}
|
||||||
onBlur={handleUsernameChange}
|
onBlur={handleUsernameChange}
|
||||||
resettable
|
resettable
|
||||||
|
@ -280,7 +280,7 @@ const LoginPage = ({ theme }) => {
|
||||||
<PasswordInput
|
<PasswordInput
|
||||||
name="password"
|
name="password"
|
||||||
component={renderInput}
|
component={renderInput}
|
||||||
label={translate("ra.auth.password")}
|
label="ra.auth.password"
|
||||||
type="password"
|
type="password"
|
||||||
disabled={loading || !supportPassAuth}
|
disabled={loading || !supportPassAuth}
|
||||||
resettable
|
resettable
|
||||||
|
@ -291,7 +291,7 @@ const LoginPage = ({ theme }) => {
|
||||||
<TextInput
|
<TextInput
|
||||||
name="base_url"
|
name="base_url"
|
||||||
component={renderInput}
|
component={renderInput}
|
||||||
label={translate("synapseadmin.auth.base_url")}
|
label="synapseadmin.auth.base_url"
|
||||||
disabled={cfg_base_url || loading}
|
disabled={cfg_base_url || loading}
|
||||||
resettable
|
resettable
|
||||||
fullWidth
|
fullWidth
|
||||||
|
|
|
@ -183,7 +183,6 @@ export const FilterableRoomDirectoryList = ({
|
||||||
...props
|
...props
|
||||||
}) => {
|
}) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
const translate = useTranslate();
|
|
||||||
const filter = roomDirectoryFilters;
|
const filter = roomDirectoryFilters;
|
||||||
const roomIdFilter = filter && filter.room_id ? true : false;
|
const roomIdFilter = filter && filter.room_id ? true : false;
|
||||||
const topicFilter = filter && filter.topic ? true : false;
|
const topicFilter = filter && filter.topic ? true : false;
|
||||||
|
@ -202,48 +201,48 @@ export const FilterableRoomDirectoryList = ({
|
||||||
source="avatar_src"
|
source="avatar_src"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
className={classes.small}
|
className={classes.small}
|
||||||
label={translate("resources.rooms.fields.avatar")}
|
label="resources.rooms.fields.avatar"
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
source="name"
|
source="name"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
label={translate("resources.rooms.fields.name")}
|
label="resources.rooms.fields.name"
|
||||||
/>
|
/>
|
||||||
{roomIdFilter && (
|
{roomIdFilter && (
|
||||||
<TextField
|
<TextField
|
||||||
source="room_id"
|
source="room_id"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
label={translate("resources.rooms.fields.room_id")}
|
label="resources.rooms.fields.room_id"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{canonicalAliasFilter && (
|
{canonicalAliasFilter && (
|
||||||
<TextField
|
<TextField
|
||||||
source="canonical_alias"
|
source="canonical_alias"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
label={translate("resources.rooms.fields.canonical_alias")}
|
label="resources.rooms.fields.canonical_alias"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{topicFilter && (
|
{topicFilter && (
|
||||||
<TextField
|
<TextField
|
||||||
source="topic"
|
source="topic"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
label={translate("resources.rooms.fields.topic")}
|
label="resources.rooms.fields.topic"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<NumberField
|
<NumberField
|
||||||
source="num_joined_members"
|
source="num_joined_members"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
label={translate("resources.rooms.fields.joined_members")}
|
label="resources.rooms.fields.joined_members"
|
||||||
/>
|
/>
|
||||||
<BooleanField
|
<BooleanField
|
||||||
source="world_readable"
|
source="world_readable"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
label={translate("resources.room_directory.fields.world_readable")}
|
label="resources.room_directory.fields.world_readable"
|
||||||
/>
|
/>
|
||||||
<BooleanField
|
<BooleanField
|
||||||
source="guest_can_join"
|
source="guest_can_join"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
label={translate("resources.room_directory.fields.guest_can_join")}
|
label="resources.room_directory.fields.guest_can_join"
|
||||||
/>
|
/>
|
||||||
</Datagrid>
|
</Datagrid>
|
||||||
</List>
|
</List>
|
||||||
|
|
Loading…
Reference in a new issue