mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1902 from keepassxreboot/fix/add_icon_to_unidentified_forms
Fix adding Username Icon to non-identified forms
This commit is contained in:
commit
d51e1fc6ad
1 changed files with 5 additions and 6 deletions
|
|
@ -34,7 +34,7 @@ kpxcIcons.addIcon = async function(field, iconType) {
|
|||
}
|
||||
};
|
||||
|
||||
// Adds all necessary icons to a saved form
|
||||
// Adds all icons from a form struct
|
||||
kpxcIcons.addIconsFromForm = async function(form) {
|
||||
const addUsernameIcons = async function(c) {
|
||||
if (kpxc.settings.showLoginFormIcon && await kpxc.passwordFilledWithExceptions(c) === false) {
|
||||
|
|
@ -93,13 +93,12 @@ kpxcIcons.initIcons = async function(combinations = []) {
|
|||
await kpxcIcons.addIconsFromForm(form);
|
||||
}
|
||||
|
||||
// Check for other combinations that are not in any form
|
||||
// Check for other combinations that are not in any form,
|
||||
// or there's a form that wasn't present in savedForms (and it's not null)
|
||||
for (const c of combinations) {
|
||||
if (c.form) {
|
||||
continue;
|
||||
if (!c.form || (c.form && !kpxcForm.savedForms.some(sf => sf.form === c.form))) {
|
||||
await kpxcIcons.addIconsFromForm(c);
|
||||
}
|
||||
|
||||
await kpxcIcons.addIconsFromForm(c);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue