diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Dashboards/Volo/Abp/AspNetCore/Mvc/UI/Dashboards/Components/Dashboard/Default.cshtml b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Dashboards/Volo/Abp/AspNetCore/Mvc/UI/Dashboards/Components/Dashboard/Default.cshtml index 22d8ceb7c7..65e694b66d 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Dashboards/Volo/Abp/AspNetCore/Mvc/UI/Dashboards/Components/Dashboard/Default.cshtml +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Dashboards/Volo/Abp/AspNetCore/Mvc/UI/Dashboards/Components/Dashboard/Default.cshtml @@ -12,23 +12,29 @@ @{ } - -
- @foreach (var globalFilterConfiguration in Model.Dashboard.AvailableGlobalFilters) + + @if (Model.Dashboard.AvailableGlobalFilters.Any()) { - var globalFilter = Model.GetGlobalFilter(globalFilterConfiguration.GlobalFilterName); + + + + @foreach (var globalFilterConfiguration in Model.Dashboard.AvailableGlobalFilters) + { + var globalFilter = Model.GetGlobalFilter(globalFilterConfiguration.GlobalFilterName); - @await GlobalFilteRenderer.RenderAsync(Component, globalFilter.Name) + @await GlobalFilteRenderer.RenderAsync(Component, globalFilter.Name) + } + + + + +
+ +
+
} - @if (Model.Dashboard.AvailableGlobalFilters.Any()) - { -
- -
- } - -
+
@foreach (var widgetConfiguration in Model.Dashboard.AvailableWidgets) diff --git a/samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/Filters/DateRangeGlobalFilterViewComponent.cshtml b/samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/Filters/DateRangeGlobalFilterViewComponent.cshtml index 43787ddf79..3fd2b8fce6 100644 --- a/samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/Filters/DateRangeGlobalFilterViewComponent.cshtml +++ b/samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/Filters/DateRangeGlobalFilterViewComponent.cshtml @@ -5,7 +5,15 @@ @{ }
- - +
+
+ + +
+
+ + +
+