Skip to content

Commit

Permalink
Merge pull request #3710 from nextcloud/fix/noid/password-field-label
Browse files Browse the repository at this point in the history
Fix setting trailingButtonLabel for PasswordField
  • Loading branch information
raimund-schluessler authored Feb 2, 2023
2 parents 5ca2740 + e15389c commit f407b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/NcPasswordField/NcPasswordField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default {
ref="inputField"
:type="isPasswordHidden ? 'password' : 'text'"
:show-trailing-button="true"
:trailing-button-label="trailingButtonLabelPassword"
:helper-text="computedHelperText"
:error="computedError"
:success="computedSuccess"
Expand Down Expand Up @@ -218,7 +219,7 @@ export default {
}
},

trailingButtonLabel() {
trailingButtonLabelPassword() {
return this.isPasswordHidden ? t('Show password') : t('Hide password')
},
},
Expand Down

0 comments on commit f407b55

Please sign in to comment.