aktueller Stand
This commit is contained in:
@@ -33,7 +33,6 @@ namespace FasdDesktopUi.Basics.Services
|
||||
"UnassignedTickets",
|
||||
"UnassignedTicketsCritical"
|
||||
};
|
||||
private const string DemoTicketDetailsKey = "Demo.HasTicketDetails";
|
||||
private readonly Dispatcher _dispatcher;
|
||||
private readonly Dictionary<string, TileCounts> _currentCounts = new Dictionary<string, TileCounts>(StringComparer.OrdinalIgnoreCase);
|
||||
private readonly Dictionary<(string Key, bool UseRoleScope), List<cF4sdApiSearchResultRelation>> _demoRelations = new Dictionary<(string, bool), List<cF4sdApiSearchResultRelation>>();
|
||||
@@ -317,18 +316,6 @@ namespace FasdDesktopUi.Basics.Services
|
||||
}
|
||||
}
|
||||
|
||||
if (_isDemo)
|
||||
{
|
||||
foreach (var key in OverviewKeys)
|
||||
{
|
||||
var extras = GetDemoRelationCount(key, scope == TileScope.Role);
|
||||
if (counts.ContainsKey(key))
|
||||
counts[key] += extras;
|
||||
else
|
||||
counts[key] = extras;
|
||||
}
|
||||
}
|
||||
|
||||
if (!_isEnabled)
|
||||
return;
|
||||
|
||||
@@ -560,15 +547,14 @@ namespace FasdDesktopUi.Basics.Services
|
||||
Name = record.DisplayName,
|
||||
id = record.TicketId,
|
||||
Status = enumF4sdSearchResultStatus.Active,
|
||||
Infos = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["Summary"] = record.Summary ?? string.Empty,
|
||||
["StatusId"] = record.StatusId ?? string.Empty,
|
||||
["UserDisplayName"] = record.UserDisplayName ?? string.Empty,
|
||||
["UserAccount"] = record.UserAccount ?? string.Empty,
|
||||
["UserDomain"] = record.UserDomain ?? string.Empty,
|
||||
[DemoTicketDetailsKey] = bool.TrueString
|
||||
},
|
||||
Infos = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["Summary"] = record.Summary ?? string.Empty,
|
||||
["StatusId"] = record.StatusId ?? string.Empty,
|
||||
["UserDisplayName"] = record.UserDisplayName ?? string.Empty,
|
||||
["UserAccount"] = record.UserAccount ?? string.Empty,
|
||||
["UserDomain"] = record.UserDomain ?? string.Empty
|
||||
},
|
||||
Identities = new cF4sdIdentityList
|
||||
{
|
||||
new cF4sdIdentityEntry { Class = enumFasdInformationClass.Ticket, Id = record.TicketId },
|
||||
|
||||
Reference in New Issue
Block a user