Skip to content

Commit

Permalink
Merge PR Yubico#1239
Browse files Browse the repository at this point in the history
  • Loading branch information
fdennis committed Nov 1, 2023
2 parents 2e45bbe + 80a4215 commit 505272f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/fido/views/locked_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ class _PinEntryFormState extends ConsumerState<_PinEntryForm> {
_isObscure = !_isObscure;
});
},
tooltip: _isObscure ? l10n.s_show_pin : l10n.s_hide_pin,
),
),
onChanged: (value) {
Expand Down
6 changes: 6 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
"s_configure_yk": "Configure YubiKey",
"s_please_wait": "Please wait\u2026",
"s_secret_key": "Secret key",
"s_show_secret_key": "Show secret key",
"s_hide_secret_key": "Hide secret key",
"s_private_key": "Private key",
"s_invalid_length": "Invalid length",
"s_require_touch": "Require touch",
Expand Down Expand Up @@ -182,6 +184,8 @@
"s_set_pin": "Set PIN",
"s_change_pin": "Change PIN",
"s_change_puk": "Change PUK",
"s_show_pin": "Show PIN",
"s_hide_pin": "Hide PIN",
"s_current_pin": "Current PIN",
"s_current_puk": "Current PUK",
"s_new_pin": "New PIN",
Expand Down Expand Up @@ -256,6 +260,8 @@
"s_manage_password": "Manage password",
"s_set_password": "Set password",
"s_password_set": "Password set",
"s_show_password": "Show password",
"s_hide_password": "Hide password",
"l_optional_password_protection": "Optional password protection",
"s_new_password": "New password",
"s_current_password": "Current password",
Expand Down
3 changes: 3 additions & 0 deletions lib/oath/views/add_account_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
_isObscure = !_isObscure;
});
},
tooltip: _isObscure
? l10n.s_show_secret_key
: l10n.s_hide_secret_key,
),
border: const OutlineInputBorder(),
prefixIcon: const Icon(Icons.key_outlined),
Expand Down
3 changes: 3 additions & 0 deletions lib/oath/views/unlock_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ class _UnlockFormState extends ConsumerState<UnlockForm> {
_isObscure = !_isObscure;
});
},
tooltip: _isObscure
? l10n.s_show_password
: l10n.s_hide_password,
),
),
onChanged: (_) => setState(() {
Expand Down
1 change: 1 addition & 0 deletions lib/piv/views/pin_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class _PinDialogState extends ConsumerState<PinDialog> {
_isObscure = !_isObscure;
});
},
tooltip: _isObscure ? l10n.s_show_pin : l10n.s_hide_pin,
),
),
textInputAction: TextInputAction.next,
Expand Down
1 change: 1 addition & 0 deletions lib/widgets/responsive_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class _ResponsiveDialogState extends State<ResponsiveDialog> {
title: widget.title,
actions: widget.actions,
leading: IconButton(
tooltip: AppLocalizations.of(context)!.s_close,
icon: const Icon(Icons.close),
onPressed: widget.allowCancel
? () {
Expand Down

0 comments on commit 505272f

Please sign in to comment.