Apply shared ticket activity capability to overview rows
This commit is contained in:
@@ -274,10 +274,11 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
vm.ResetSelection();
|
||||
}
|
||||
|
||||
public void SetServiceRequestsVisibility(bool isVisible)
|
||||
public void SetTicketAndServiceRequestsVisibility(bool isVisible)
|
||||
{
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
TicketsRow.Height = isVisible ? GridLength.Auto : new GridLength(0);
|
||||
ServiceRequestsRow.Height = isVisible ? GridLength.Auto : new GridLength(0);
|
||||
});
|
||||
}
|
||||
@@ -324,7 +325,7 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
if (counts == null || counts.Count == 0)
|
||||
counts = await LoadCountsFallbackAsync(useRoleTickets).ConfigureAwait(false);
|
||||
|
||||
SetServiceRequestsVisibility(TicketOverviewUpdateService.Instance?.ServiceRequestsEnabled == true);
|
||||
SetTicketAndServiceRequestsVisibility(TicketOverviewUpdateService.Instance?.TicketAndServiceRequestsEnabled == true);
|
||||
|
||||
await Dispatcher.InvokeAsync(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user