From 1e739e94e232a347a2c86bdfbc5355206ec3054d Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Sat, 29 Jan 2022 13:46:32 +0530 Subject: [PATCH] Make room alias component reusable for space settings Signed-off-by: Ajay Bura --- src/app/molecules/room-aliases/RoomAliases.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/app/molecules/room-aliases/RoomAliases.jsx b/src/app/molecules/room-aliases/RoomAliases.jsx index 2093ab7..4fa2b3a 100644 --- a/src/app/molecules/room-aliases/RoomAliases.jsx +++ b/src/app/molecules/room-aliases/RoomAliases.jsx @@ -293,7 +293,7 @@ function RoomAliases({ roomId }) {
{`Publish this room to the ${hsString}'s public room directory?`}} + content={{`Publish this ${room.isSpaceRoom() ? 'space' : 'room'} to the ${hsString}'s public room directory?`}} options={( No published addresses} {(aliases.published.length > 0 && !aliases.main) && No Main address (select one from below)} {aliases.published.map(renderAlias)} - Published addresses can be used by anyone on any server to join your room. To publish an address, it needs to be set as a local address first. + + {`Published addresses can be used by anyone on any server to join your ${room.isSpaceRoom() ? 'space' : 'room'}. To publish an address, it needs to be set as a local address first.`} +
{ isLocalVisible && (
Local addresses {(aliases.local.length === 0) && No local addresses} {aliases.local.map(renderAlias)} - Set local addresses for this room so users can find this room through your homeserver. + + {`Set local addresses for this ${room.isSpaceRoom() ? 'space' : 'room'} so users can find this ${room.isSpaceRoom() ? 'space' : 'room'} through your homeserver.`} + Add local address
@@ -324,7 +328,7 @@ function RoomAliases({ roomId }) { name="alias-input" state={inputState} onChange={handleAliasChange} - placeholder="my_room_address" + placeholder={`my_${room.isSpaceRoom() ? 'space' : 'room'}_address`} required />