Compare commits

...

3 Commits

Author SHA1 Message Date
Jonas 12f9594270
Merge d63c4dbba3 into 038f24302f 2024-08-22 08:29:13 +02:00
Nextcloud bot 038f24302f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-08-22 02:22:13 +00:00
brtbr d63c4dbba3 fix: copy to clipboard as plain/text
The default behavior for CopyToClipboard is to choose the output format
text/html. This causes issues when pasting into HTML messages in
Thunderbird. Therefore this commit changes the output format to
text/plain which seems to solve the issue.
2024-06-01 23:16:41 +02:00
5 changed files with 7 additions and 3 deletions

View File

@ -18,6 +18,8 @@ OC.L10N.register(
"Access" : "Åtkomst", "Access" : "Åtkomst",
"Max" : "Max", "Max" : "Max",
"Edit" : "Redigera", "Edit" : "Redigera",
"This message is shown to all users in the chat area after they joined." : "Detta meddelande visas för alla användare i chattområdet efter att de gått med.",
"If enabled, the user list, chat area and presentation are hidden by default." : "Om aktiverat är användarlistan, chattområdet och presentationen dolda som standard.",
"Welcome" : "Välkommen", "Welcome" : "Välkommen",
"Miscellaneous" : "Diverse", "Miscellaneous" : "Diverse",
"Recording" : "Inspelning", "Recording" : "Inspelning",

View File

@ -16,6 +16,8 @@
"Access" : "Åtkomst", "Access" : "Åtkomst",
"Max" : "Max", "Max" : "Max",
"Edit" : "Redigera", "Edit" : "Redigera",
"This message is shown to all users in the chat area after they joined." : "Detta meddelande visas för alla användare i chattområdet efter att de gått med.",
"If enabled, the user list, chat area and presentation are hidden by default." : "Om aktiverat är användarlistan, chattområdet och presentationen dolda som standard.",
"Welcome" : "Välkommen", "Welcome" : "Välkommen",
"Miscellaneous" : "Diverse", "Miscellaneous" : "Diverse",
"Recording" : "Inspelning", "Recording" : "Inspelning",

View File

@ -89,7 +89,7 @@ const EditRoomDialog: React.FC<Props> = ({ room, restriction, updateProperty, op
return <option key={key} value={key}>{label}</option>; return <option key={key} value={key}>{label}</option>;
})} })}
</select> </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>} {descriptions[field] && <em>{descriptions[field]}</em>}
</div> </div>
); );

View File

@ -17,7 +17,7 @@ const RecordingRow: React.FC<Props> = ({recording, deleteRecording, storeRecordi
</a> </a>
</td> </td>
<td className="share icon-col"> <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')}> <button className="action-item copy-to-clipboard" title={t('bbb', 'Copy to clipboard')}>
<span className="icon icon-clippy icon-visible" ></span> <span className="icon icon-clippy icon-visible" ></span>
</button> </button>

View File

@ -202,7 +202,7 @@ const RoomRow: React.FC<Props> = (props) => {
</a> </a>
</td> </td>
<td className="share icon-col"> <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')}> <button className="action-item copy-to-clipboard" title={t('bbb', 'Copy to clipboard')}>
<span className="icon icon-clippy icon-visible" ></span> <span className="icon icon-clippy icon-visible" ></span>
</button> </button>