Skip to content

Commit

Permalink
Merge pull request #275 from Brtbr/fix/copy-as-plaintext
Browse files Browse the repository at this point in the history
fix: copy to clipboard as plain/text
  • Loading branch information
zak39 authored Feb 5, 2025
2 parents 5deddb8 + 851ee29 commit d4b4c7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ts/Manager/EditRoomDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const EditRoomDialog: React.FC<Props> = ({ room, restriction, updateProperty, op
return <option key={key} value={key}>{label}</option>;
})}
</select>
{(value === Access.Password && room.password) && <CopyToClipboard text={room.password}><input type="text" readOnly={true} className="icon-clippy" value={room.password} /></CopyToClipboard>}
{(value === Access.Password && room.password) && <CopyToClipboard text={room.password} options={{format:'text/plain'}}><input type="text" readOnly={true} className="icon-clippy" value={room.password} /></CopyToClipboard>}
{descriptions[field] && <em>{descriptions[field]}</em>}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion ts/Manager/RecordingRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const RecordingRow: React.FC<Props> = ({recording, isAdmin, deleteRecording, sto
</a>
</td>
<td className="share icon-col">
<CopyToClipboard text={recording.url}>
<CopyToClipboard text={recording.url} options={{format:'text/plain'}}>
<button className="action-item copy-to-clipboard" title={t('bbb', 'Copy to clipboard')}>
<span className="icon icon-clippy icon-visible" ></span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion ts/Manager/RoomRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const RoomRow: React.FC<Props> = (props) => {
</a>
</td>
<td className="share icon-col">
<CopyToClipboard text={api.getRoomUrl(room)}>
<CopyToClipboard text={api.getRoomUrl(room)} options={{format:'text/plain'}}>
<button className="action-item copy-to-clipboard" title={t('bbb', 'Copy to clipboard')}>
<span className="icon icon-clippy icon-visible" ></span>
</button>
Expand Down

0 comments on commit d4b4c7a

Please sign in to comment.