Compare commits

...

3 Commits

Author SHA1 Message Date
Jonas f01ca9ff19
Merge 2c30b2fd85 into b60d1e77a6 2024-11-28 14:09:58 +01:00
Nextcloud bot b60d1e77a6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-28 02:33:16 +00:00
brtbr 2c30b2fd85 feat: add a checkbox to toggle password visibility
This commit adds the ability to toggle the password visibility for the
password input for guests in password-protected bbb rooms.
2024-06-02 16:12:38 +02:00
4 changed files with 33 additions and 2 deletions

View File

@ -1,6 +1,10 @@
OC.L10N.register(
"bbb",
{
"You shared the room %s with {shareWith}." : "Du delade rummet %s med {shareWith}.",
"{user} shared the room %s with you." : "{user} delade rummet %s med dig.",
"You unshared the room %s with {shareWith}." : "Du slutade dela rummet %s med {shareWith}.",
"{user} unshared the room %s with you." : "{user} slutade dela rummet %s med dig.",
"Public" : "Offentlig",
"Internal" : "Intern",
"Back to %s" : "Tillbaka till %s",
@ -35,6 +39,7 @@ OC.L10N.register(
"Server error" : "Serverfel",
"Start" : "Start",
"Loading" : "Läser in",
"You are not allowed to change this option, because this room is shared with you." : "Du får inte ändra det här alternativet eftersom detta rum delas med dig.",
"Settings saved" : "Inställningar sparade",
"Unexpected error occurred" : "Ett oväntat fel inträffade",
"Send to" : "Skicka till",

View File

@ -1,4 +1,8 @@
{ "translations": {
"You shared the room %s with {shareWith}." : "Du delade rummet %s med {shareWith}.",
"{user} shared the room %s with you." : "{user} delade rummet %s med dig.",
"You unshared the room %s with {shareWith}." : "Du slutade dela rummet %s med {shareWith}.",
"{user} unshared the room %s with you." : "{user} slutade dela rummet %s med dig.",
"Public" : "Offentlig",
"Internal" : "Intern",
"Back to %s" : "Tillbaka till %s",
@ -33,6 +37,7 @@
"Server error" : "Serverfel",
"Start" : "Start",
"Loading" : "Läser in",
"You are not allowed to change this option, because this room is shared with you." : "Du får inte ändra det här alternativet eftersom detta rum delas med dig.",
"Settings saved" : "Inställningar sparade",
"Unexpected error occurred" : "Ett oväntat fel inträffade",
"Send to" : "Skicka till",

View File

@ -23,9 +23,11 @@
required minlength="3" autofocus />
<?php if (isset($_['passwordRequired']) && $_['passwordRequired']): ?>
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
<input type="text" name="password" id="password" class="bbb-input"
<input type="password" name="password" id="password" class="bbb-input"
placeholder="<?php p($l->t('Password')); ?>" value=""
required minlength="8" />
<input type="checkbox" name="password-visibility-toggle" id="password-visibility" class="checkbox" value=""/>
<label for="password-visibility"><?php p($l->t('Show Password')); ?></label>
<button class="primary"><?php p($l->t('Join')); ?>
<div class="submit-icon icon-confirm-white"></div></button>
<?php else: ?>

View File

@ -1 +1,20 @@
import './join.scss';
$(() => {
$<HTMLInputElement>('#password-visibility').on('change', function (ev) {
ev.preventDefault();
console.log(`checkbox ${ev.target.name} changed to ${ev.target.checked}`);
const passwordField = document.querySelector("#password") as HTMLInputElement | null;
if (passwordField != null) {
if (passwordField.type === "password") {
passwordField.type = "text";
} else {
passwordField.type = "password";
}
}
});
});