From d156f6a1d07a95e5d0f047c2b1a8923c7d76b34c Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 4 Aug 2021 13:45:18 +0200 Subject: [PATCH] add anchor links for doc types without tabs --- .../components/editor/umbeditorcontentheader.directive.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js index 055b3f5430..09b5579cf4 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js @@ -134,6 +134,14 @@ }); } + scope.editor.variantApps.forEach((app) => { + // only render quick links on the content app if there are no tabs + if (app.alias === "umbContent") { + const hasTabs = scope.editor.content.tabs && scope.editor.content.tabs.filter(group => group.type === 1).length > 0; + app.anchors = hasTabs ? [] : scope.editor.content.tabs; + } + }); + scope.content.variants.forEach(function (variant) { // if we are looking for the variant with default language then we also want to check for invariant variant.