aktueller Stand
This commit is contained in:
@@ -820,7 +820,26 @@ namespace FasdDesktopUi.Pages.SearchPage
|
||||
|
||||
private bool CheckTicketOverviewAvailability()
|
||||
{
|
||||
return cFasdCockpitConfig.Instance?.Global?.TicketConfiguration?.ShowOverview == true;
|
||||
return cFasdCockpitConfig.Instance?.Global?.TicketConfiguration?.ShowOverview == true
|
||||
&& IsTicketIntegrationActive();
|
||||
}
|
||||
|
||||
private bool IsTicketIntegrationActive()
|
||||
{
|
||||
try
|
||||
{
|
||||
var healthCards = cF4SDCockpitXmlConfig.Instance?.HealthCardConfig?.HealthCards?.Values;
|
||||
if (healthCards == null)
|
||||
return false;
|
||||
|
||||
return healthCards.Any(card =>
|
||||
card?.InformationClasses?.Contains(enumFasdInformationClass.Ticket) == true);
|
||||
}
|
||||
catch (Exception E)
|
||||
{
|
||||
LogException(E);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateTicketOverviewAvailability()
|
||||
|
||||
Reference in New Issue
Block a user