Browse Source

Merge remote-tracking branch 'origin/rel-10.7' into auto-merge-forward/rel-10.7-to-rel-11.0-168

pull/26457/head
github-actions[bot] 1 week ago
parent
commit
d6ca227a16
  1. 4
      modules/setting-management/src/Volo.Abp.SettingManagement.Web/Navigation/SettingManagementMainMenuContributor.cs

4
modules/setting-management/src/Volo.Abp.SettingManagement.Web/Navigation/SettingManagementMainMenuContributor.cs

@ -24,8 +24,10 @@ public class SettingManagementMainMenuContributor : IMenuContributor
return;
}
/* A contributor can be available and still add no group: the time zone one adds its group only when the
* clock supports multiple time zones. Show the item only when the page has a group to show. */
var settingPageContributorManager = context.ServiceProvider.GetRequiredService<SettingPageContributorManager>();
if (!(await settingPageContributorManager.GetAvailableContributors()).Any())
if (!(await settingPageContributorManager.ConfigureAsync()).Groups.Any())
{
return;
}

Loading…
Cancel
Save