add missing labels in the rooms list

This commit is contained in:
Aine 2024-11-21 15:56:17 +02:00
parent eb8e8f80a9
commit de125d0d66
No known key found for this signature in database
GPG Key ID: 34969C908CCA2804
9 changed files with 26 additions and 12 deletions

View File

@ -225,6 +225,7 @@ const de: SynapseTranslationMessages = {
history_visibility: "Historie-Sichtbarkeit", history_visibility: "Historie-Sichtbarkeit",
topic: "Thema", topic: "Thema",
avatar: "Avatar", avatar: "Avatar",
actions: "Aktionen",
}, },
helper: { helper: {
forward_extremities: forward_extremities:

View File

@ -198,6 +198,7 @@ const en: SynapseTranslationMessages = {
history_visibility: "History visibility", history_visibility: "History visibility",
topic: "Topic", topic: "Topic",
avatar: "Avatar", avatar: "Avatar",
actions: "Actions",
}, },
helper: { helper: {
forward_extremities: forward_extremities:

View File

@ -190,6 +190,7 @@ const fa: SynapseTranslationMessages = {
history_visibility: "مشاهده تاریخچه", history_visibility: "مشاهده تاریخچه",
topic: "موضوع", topic: "موضوع",
avatar: "آواتار", avatar: "آواتار",
actions: "عملیات",
}, },
helper: { helper: {
forward_extremities: forward_extremities:

View File

@ -192,6 +192,7 @@ const fr: SynapseTranslationMessages = {
history_visibility: "Visibilité de l'historique", history_visibility: "Visibilité de l'historique",
topic: "Sujet", topic: "Sujet",
avatar: "Avatar", avatar: "Avatar",
actions: "Actions",
}, },
helper: { helper: {
forward_extremities: forward_extremities:

1
src/i18n/index.d.ts vendored
View File

@ -190,6 +190,7 @@ interface SynapseTranslationMessages extends TranslationMessages {
history_visibility: string; history_visibility: string;
topic?: string; topic?: string;
avatar?: string; avatar?: string;
actions: string;
}; };
helper?: { helper?: {
forward_extremities: string; forward_extremities: string;

View File

@ -191,6 +191,7 @@ const it: SynapseTranslationMessages = {
history_visibility: "Visibilità temporale", history_visibility: "Visibilità temporale",
topic: "Topic", topic: "Topic",
avatar: "Avatar", avatar: "Avatar",
actions: "Azioni",
}, },
helper: { helper: {
/* forward_extremities: /* forward_extremities:

View File

@ -228,6 +228,7 @@ const ru: SynapseTranslationMessages = {
history_visibility: "Видимость истории", history_visibility: "Видимость истории",
topic: "Тема", topic: "Тема",
avatar: "Аватар", avatar: "Аватар",
actions: "Действия",
}, },
helper: { helper: {
forward_extremities: forward_extremities:

View File

@ -212,6 +212,9 @@ const zh: SynapseTranslationMessages = {
join_rules: "加入规则", join_rules: "加入规则",
guest_access: "访客访问", guest_access: "访客访问",
history_visibility: "历史可见性", history_visibility: "历史可见性",
topic: "主题",
avatar: "头像",
actions: "操作",
}, },
enums: { enums: {
join_rules: { join_rules: {

View File

@ -361,17 +361,19 @@ export const RoomList = (props: ListProps) => {
<ReferenceField reference="rooms" source="id" label="resources.users.fields.avatar" link={false} sortable={false}> <ReferenceField reference="rooms" source="id" label="resources.users.fields.avatar" link={false} sortable={false}>
<AvatarField source="avatar" sx={{ height: "40px", width: "40px" }} /> <AvatarField source="avatar" sx={{ height: "40px", width: "40px" }} />
</ReferenceField> </ReferenceField>
<BooleanField <WrapperField source="encryption" sortBy="is_encrypted" label="resources.rooms.fields.encryption">
source="is_encrypted" <BooleanField
sortBy="encryption" source="is_encrypted"
TrueIcon={HttpsIcon} sortBy="encryption"
FalseIcon={NoEncryptionIcon} TrueIcon={HttpsIcon}
label={<HttpsIcon />} FalseIcon={NoEncryptionIcon}
sx={{ label={<HttpsIcon />}
[`& [data-testid="true"]`]: { color: theme.palette.success.main }, sx={{
[`& [data-testid="false"]`]: { color: theme.palette.error.main }, [`& [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" /> <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_members" label="resources.rooms.fields.joined_members" />
<RaTextField source="joined_local_members" label="resources.rooms.fields.joined_local_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" /> <RaTextField source="version" label="resources.rooms.fields.version" />
<BooleanField source="federatable" label="resources.rooms.fields.federatable" /> <BooleanField source="federatable" label="resources.rooms.fields.federatable" />
<BooleanField source="public" label="resources.rooms.fields.public" /> <BooleanField source="public" label="resources.rooms.fields.public" />
<MakeAdminBtn /> <WrapperField label="resources.rooms.fields.actions">
<MakeAdminBtn />
</WrapperField>
</DatagridConfigurable> </DatagridConfigurable>
</List> </List>
); );