From b6338cacb3ac9ac6cdfc76a38f3cde95f747cd0d Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 22 Sep 2021 09:26:02 +0200 Subject: [PATCH] prevent tab properties to be rendered twice --- .../src/views/components/content/umb-tabbed-content.html | 3 ++- .../elementeditor/umb-element-editor-content.component.html | 3 ++- .../src/views/media/apps/content/content.html | 3 ++- .../src/views/member/apps/content/content.html | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/components/content/umb-tabbed-content.html b/src/Umbraco.Web.UI.Client/src/views/components/content/umb-tabbed-content.html index e742e32f8cae..f906ee6d4ade 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/content/umb-tabbed-content.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/content/umb-tabbed-content.html @@ -29,7 +29,8 @@ data-app-anchor="{{group.id}}" data-element="group-{{group.alias}}" ng-repeat="group in content.tabs track by group.key" - ng-show="(group.parentAlias === activeTabAlias && group.type === 0) || tabs.length === 0"> + ng-if="group.type === 0" + ng-show="group.parentAlias === activeTabAlias || tabs.length === 0">
{{ group.label }}
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umb-element-editor-content.component.html b/src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umb-element-editor-content.component.html index 5005edadc522..cd98aecc032f 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umb-element-editor-content.component.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umb-element-editor-content.component.html @@ -29,7 +29,8 @@
+ ng-if="group.type === 0" + ng-show="group.parentAlias === vm.activeTabAlias || vm.tabs.length === 0">
{{ group.label }}
diff --git a/src/Umbraco.Web.UI.Client/src/views/media/apps/content/content.html b/src/Umbraco.Web.UI.Client/src/views/media/apps/content/content.html index b4be9027b5b0..fc3b3fefce2e 100644 --- a/src/Umbraco.Web.UI.Client/src/views/media/apps/content/content.html +++ b/src/Umbraco.Web.UI.Client/src/views/media/apps/content/content.html @@ -21,7 +21,8 @@ class="umb-group-panel" data-element="group-{{group.alias}}" ng-repeat="group in content.tabs | filter: { hide : '!' + true } track by group.id" - ng-show="(group.parentAlias === vm.activeTabAlias && group.type === 0) || vm.tabs.length === 0"> + ng-if="group.type === 0" + ng-show="group.parentAlias === vm.activeTabAlias || vm.tabs.length === 0">
{{ group.label }}
diff --git a/src/Umbraco.Web.UI.Client/src/views/member/apps/content/content.html b/src/Umbraco.Web.UI.Client/src/views/member/apps/content/content.html index 305b5d4e77f2..e11ccfcc384a 100644 --- a/src/Umbraco.Web.UI.Client/src/views/member/apps/content/content.html +++ b/src/Umbraco.Web.UI.Client/src/views/member/apps/content/content.html @@ -21,7 +21,8 @@ class="umb-group-panel" data-element="group-{{group.alias}}" ng-repeat="group in content.tabs" - ng-show="(group.parentAlias === vm.activeTabAlias && group.type === 0) || vm.tabs.length === 0"> + ng-if="group.type === 0" + ng-show="group.parentAlias === vm.activeTabAlias || vm.tabs.length === 0">
{{ group.label }}