add missing labels in the rooms list
This commit is contained in:
parent
eb8e8f80a9
commit
de125d0d66
@ -225,6 +225,7 @@ const de: SynapseTranslationMessages = {
|
||||
history_visibility: "Historie-Sichtbarkeit",
|
||||
topic: "Thema",
|
||||
avatar: "Avatar",
|
||||
actions: "Aktionen",
|
||||
},
|
||||
helper: {
|
||||
forward_extremities:
|
||||
|
@ -198,6 +198,7 @@ const en: SynapseTranslationMessages = {
|
||||
history_visibility: "History visibility",
|
||||
topic: "Topic",
|
||||
avatar: "Avatar",
|
||||
actions: "Actions",
|
||||
},
|
||||
helper: {
|
||||
forward_extremities:
|
||||
|
@ -190,6 +190,7 @@ const fa: SynapseTranslationMessages = {
|
||||
history_visibility: "مشاهده تاریخچه",
|
||||
topic: "موضوع",
|
||||
avatar: "آواتار",
|
||||
actions: "عملیات",
|
||||
},
|
||||
helper: {
|
||||
forward_extremities:
|
||||
|
@ -192,6 +192,7 @@ const fr: SynapseTranslationMessages = {
|
||||
history_visibility: "Visibilité de l'historique",
|
||||
topic: "Sujet",
|
||||
avatar: "Avatar",
|
||||
actions: "Actions",
|
||||
},
|
||||
helper: {
|
||||
forward_extremities:
|
||||
|
1
src/i18n/index.d.ts
vendored
1
src/i18n/index.d.ts
vendored
@ -190,6 +190,7 @@ interface SynapseTranslationMessages extends TranslationMessages {
|
||||
history_visibility: string;
|
||||
topic?: string;
|
||||
avatar?: string;
|
||||
actions: string;
|
||||
};
|
||||
helper?: {
|
||||
forward_extremities: string;
|
||||
|
@ -191,6 +191,7 @@ const it: SynapseTranslationMessages = {
|
||||
history_visibility: "Visibilità temporale",
|
||||
topic: "Topic",
|
||||
avatar: "Avatar",
|
||||
actions: "Azioni",
|
||||
},
|
||||
helper: {
|
||||
/* forward_extremities:
|
||||
|
@ -228,6 +228,7 @@ const ru: SynapseTranslationMessages = {
|
||||
history_visibility: "Видимость истории",
|
||||
topic: "Тема",
|
||||
avatar: "Аватар",
|
||||
actions: "Действия",
|
||||
},
|
||||
helper: {
|
||||
forward_extremities:
|
||||
|
@ -212,6 +212,9 @@ const zh: SynapseTranslationMessages = {
|
||||
join_rules: "加入规则",
|
||||
guest_access: "访客访问",
|
||||
history_visibility: "历史可见性",
|
||||
topic: "主题",
|
||||
avatar: "头像",
|
||||
actions: "操作",
|
||||
},
|
||||
enums: {
|
||||
join_rules: {
|
||||
|
@ -361,17 +361,19 @@ export const RoomList = (props: ListProps) => {
|
||||
<ReferenceField reference="rooms" source="id" label="resources.users.fields.avatar" link={false} sortable={false}>
|
||||
<AvatarField source="avatar" sx={{ height: "40px", width: "40px" }} />
|
||||
</ReferenceField>
|
||||
<BooleanField
|
||||
source="is_encrypted"
|
||||
sortBy="encryption"
|
||||
TrueIcon={HttpsIcon}
|
||||
FalseIcon={NoEncryptionIcon}
|
||||
label={<HttpsIcon />}
|
||||
sx={{
|
||||
[`& [data-testid="true"]`]: { color: theme.palette.success.main },
|
||||
[`& [data-testid="false"]`]: { color: theme.palette.error.main },
|
||||
}}
|
||||
/>
|
||||
<WrapperField source="encryption" sortBy="is_encrypted" label="resources.rooms.fields.encryption">
|
||||
<BooleanField
|
||||
source="is_encrypted"
|
||||
sortBy="encryption"
|
||||
TrueIcon={HttpsIcon}
|
||||
FalseIcon={NoEncryptionIcon}
|
||||
label={<HttpsIcon />}
|
||||
sx={{
|
||||
[`& [data-testid="true"]`]: { color: theme.palette.success.main },
|
||||
[`& [data-testid="false"]`]: { color: theme.palette.error.main },
|
||||
}}
|
||||
/>
|
||||
</WrapperField>
|
||||
<FunctionField source="name" render={record => record["name"] || record["canonical_alias"] || record["id"]} label="resources.rooms.fields.name" />
|
||||
<RaTextField source="joined_members" label="resources.rooms.fields.joined_members" />
|
||||
<RaTextField source="joined_local_members" label="resources.rooms.fields.joined_local_members" />
|
||||
@ -379,7 +381,9 @@ export const RoomList = (props: ListProps) => {
|
||||
<RaTextField source="version" label="resources.rooms.fields.version" />
|
||||
<BooleanField source="federatable" label="resources.rooms.fields.federatable" />
|
||||
<BooleanField source="public" label="resources.rooms.fields.public" />
|
||||
<MakeAdminBtn />
|
||||
<WrapperField label="resources.rooms.fields.actions">
|
||||
<MakeAdminBtn />
|
||||
</WrapperField>
|
||||
</DatagridConfigurable>
|
||||
</List>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user