From 32e9fd291d0907aaafd56cde6d61111d477142b7 Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 6 Apr 2023 21:25:13 +0200 Subject: [PATCH] promotes attributes tab should be always visible when available, fixes #3806 --- src/public/app/layouts/desktop_layout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.js index 3040a4ac3..17dcc99a7 100644 --- a/src/public/app/layouts/desktop_layout.js +++ b/src/public/app/layouts/desktop_layout.js @@ -128,6 +128,10 @@ export default class DesktopLayout { ) .child( new RibbonContainer() + // order of the widgets matter. Some of these want to "activate" themselves + // when visible, when this happens to multiple of them, the first one "wins". + // promoted attributes should always win. + .ribbon(new PromotedAttributesWidget()) .ribbon(new ScriptExecutorWidget()) .ribbon(new SearchDefinitionWidget()) .ribbon(new EditedNotesWidget()) @@ -135,7 +139,6 @@ export default class DesktopLayout { .ribbon(new NotePropertiesWidget()) .ribbon(new FilePropertiesWidget()) .ribbon(new ImagePropertiesWidget()) - .ribbon(new PromotedAttributesWidget()) .ribbon(new BasicPropertiesWidget()) .ribbon(new OwnedAttributeListWidget()) .ribbon(new InheritedAttributesWidget())