From 5aff6926a840ba954585f1cec392674c8e5e5792 Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 4 Oct 2020 19:28:12 +0200 Subject: [PATCH] editor: display "shared properties" in inspector when multiple widgets are selected --- src/client/ui/ui-inspector.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/ui/ui-inspector.js b/src/client/ui/ui-inspector.js index 3748c9e8..23d68252 100644 --- a/src/client/ui/ui-inspector.js +++ b/src/client/ui/ui-inspector.js @@ -121,6 +121,8 @@ class UiInspector extends UiWidget { let category = html``, categoryLabel = categoryName === 'class_specific' ? widget.props.type : categoryName + if (widgets.length > 1 && categoryName === 'class_specific') categoryLabel = 'shared properties' + category.appendChild(html`
${categoryLabel}${categoryName === 'widget' && widgets.length > 1 ? `s (${widgets.length})` : ''}
`)