Skip to content

Commit

Permalink
Merge pull request #173 from KKoukiou/password-eye-fix
Browse files Browse the repository at this point in the history
storage: fix password visibility toggle when clicking on 'eye' button
  • Loading branch information
KKoukiou committed Feb 16, 2024
2 parents bd8274d + 3148977 commit 739140d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/storage/EncryptedDevices.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const UnlockDialog = ({ isLoadingNewPartitioning, lockedLUKSDevices, onClose, di
<TextInput
isRequired
id={idPrefix + "-luks-passphrase"}
type={passphraseHidden ? "passphrase" : "text"}
type={passphraseHidden ? "password" : "text"}
aria-label={_("Passphrase")}
value={passphrase}
onChange={(_event, val) => setPassphrase(val)}
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def unlock_device(self, passphrase, encrypted_devices=None, successfully_unlocke
"#unlock-device-dialog-luks-devices",
device,
)
b.set_input_text("#unlock-device-dialog-luks-passphrase", passphrase)
b.set_input_text("#unlock-device-dialog-luks-passphrase[type=password]", passphrase)
b.click("#unlock-device-dialog-submit-btn")
# Wait for the dialog to either close or stop being in progress
with b.wait_timeout(30):
Expand Down

0 comments on commit 739140d

Please sign in to comment.