Fix pluralization in model instance selection message
This commit is contained in:
@@ -402,7 +402,7 @@ function describeSelection(
|
|||||||
case "entities":
|
case "entities":
|
||||||
return `${selection.ids.length} entity selected (${getEntityDisplayLabelById(selection.ids[0], entities)})`;
|
return `${selection.ids.length} entity selected (${getEntityDisplayLabelById(selection.ids[0], entities)})`;
|
||||||
case "modelInstances":
|
case "modelInstances":
|
||||||
return `${selection.ids.length} model instance selected (${getModelInstanceDisplayLabelById(selection.ids[0], modelInstances, assets)})`;
|
return `${selection.ids.length} model instance${selection.ids.length === 1 ? "" : "s"} selected (${getModelInstanceDisplayLabelById(selection.ids[0], modelInstances, assets)})`;
|
||||||
default:
|
default:
|
||||||
return "Unknown selection";
|
return "Unknown selection";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user