@umbraco-cms/backoffice 14.0.0--preview004-ec083258 → 14.0.0--preview004-7caf64b7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,8 @@ export let UmbSectionMainViewElement = class UmbSectionMainViewElement extends U
75
75
  : html `${nothing}`;
76
76
  }
77
77
  #renderDashboards() {
78
- return this._dashboards.length > 0
78
+ // Only show dashboards if there are more than one dashboard or if there are both dashboards and views
79
+ return (this._dashboards.length > 0 && this._views.length > 0) || this._dashboards.length > 1
79
80
  ? html `
80
81
  <uui-tab-group slot="header" id="dashboards">
81
82
  ${this._dashboards.map((dashboard) => {
@@ -93,7 +94,8 @@ export let UmbSectionMainViewElement = class UmbSectionMainViewElement extends U
93
94
  : '';
94
95
  }
95
96
  #renderViews() {
96
- return this._views.length > 0
97
+ // Only show views if there are more than one view or if there are both dashboards and views
98
+ return (this._views.length > 0 && this._dashboards.length > 0) || this._views.length > 1
97
99
  ? html `
98
100
  <uui-tab-group slot="navigation" id="views">
99
101
  ${this._views.map((view) => {