Allow removing the room name (#702)
authorginnyTheCat <ginnythecat@lelux.net>
Wed, 3 Aug 2022 14:29:56 +0000 (16:29 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Aug 2022 14:29:56 +0000 (19:59 +0530)
src/app/molecules/room-profile/RoomProfile.jsx

index 96e840766400d66c482fa8ac8afaf01e29ab96d8..218119845e56b01bf2b416019022c8fef1a0e8c2 100644 (file)
@@ -132,7 +132,7 @@ function RoomProfile({ roomId }) {
 
   const renderEditNameAndTopic = () => (
     <form className="room-profile__edit-form" onSubmit={handleOnSubmit}>
-      {canChangeName && <Input value={roomName} name="room-name" disabled={status.type === cons.status.IN_FLIGHT} label="Name" required />}
+      {canChangeName && <Input value={roomName} name="room-name" disabled={status.type === cons.status.IN_FLIGHT} label="Name" />}
       {canChangeTopic && <Input value={roomTopic} name="room-topic" disabled={status.type === cons.status.IN_FLIGHT} minHeight={100} resizable label="Topic" />}
       {(!canChangeName || !canChangeTopic) && <Text variant="b3">{`You have permission to change ${room.isSpaceRoom() ? 'space' : 'room'} ${canChangeName ? 'name' : 'topic'} only.`}</Text>}
       { status.type === cons.status.IN_FLIGHT && <Text variant="b2">{status.msg}</Text>}