Skip to content

Commit 4aec7e0

Browse files
authored
Implement long password
1 parent 25a7620 commit 4aec7e0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/addons/settings/settings.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,17 +428,18 @@ const Setting = ({
428428
/>
429429
</React.Fragment>
430430
)}
431-
{(setting.type === 'string' || setting.type === 'long_string' || setting.type === 'untranslated' || setting.type === 'password') && (
431+
{(setting.type === 'string' || setting.type === 'long_string' || setting.type === 'untranslated' ||
432+
setting.type === 'password' || setting.type === 'long_password') && (
432433
<React.Fragment>
433434
{label}
434435
<TextInput
435436
id={uniqueId}
436-
type={setting.type === 'password' ? 'password' : 'text'}
437+
type={setting.type === 'password' || setting.type === 'long_password' ? 'password' : 'text'}
437438
value={value}
438-
className={setting.type === 'long_string' ? styles.longStringSetting : ''}
439+
className={setting.type === 'long_string' || setting.type === 'long_password' ? styles.longStringSetting : ''}
439440
onChange={newValue => SettingsStore.setAddonSetting(addonId, settingId, newValue)}
440441
/>
441-
{setting.type !== 'long_string' && (
442+
{setting.type !== 'long_string' && setting.type !== 'long_password' && (
442443
<ResetButton
443444
addonId={addonId}
444445
settingId={settingId}

0 commit comments

Comments
 (0)