Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove Disambiguators from Relation Names in Membership Editor. Fixes #8759 #10583

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion modules/ui/sections/raw_membership_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,11 @@ export function uiSectionRawMembershipEditor(context) {
.attr('class', 'member-entity-type')
.text(function(d) {
var matched = presetManager.match(d.relation, context.graph());
return (matched && matched.name()) || t.html('inspector.relation');
var fullName = (matched && matched.name()) || t('inspector.relation');

// Remove the disambiguator (text in parentheses) from the full name
var simplifiedName = fullName.replace(/\s*\(.*?\)$/, ''); // Removes " (…)" at the end
return simplifiedName;
});

labelLink
Expand Down
Loading