mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix attribute filling with identical usernames (#2304)
Fix attribute filling with identical usernames
This commit is contained in:
parent
9b70abff3e
commit
3148fa4011
1 changed files with 2 additions and 2 deletions
|
|
@ -317,11 +317,11 @@ page.updateContextMenu = async function(tab, credentials) {
|
|||
// Show username inside [] if there are KPH attributes inside multiple credentials
|
||||
const attributeName = Object.keys(attribute)[0].slice(5);
|
||||
const finalName = credentials.length > 1
|
||||
? `[${cred.login}] ${attributeName}`
|
||||
? `[${cred?.login}] ${attributeName} (${cred.name || credentials.indexOf(cred)})`
|
||||
: attributeName;
|
||||
|
||||
const menuItem = {
|
||||
action: `fill_attribute_${finalName}`,
|
||||
action: `fill_attribute_${cred?.uuid}_${attributeName}`,
|
||||
args: attribute,
|
||||
parentId: 'fill_attribute',
|
||||
title: finalName
|
||||
|
|
|
|||
Loading…
Reference in a new issue