add support to properate value changes to everywhere sle

This commit is contained in:
TheXamlGuy
2024-01-23 18:57:30 +00:00
parent 6daaa39b8c
commit 2f827753f5
15 changed files with 100 additions and 28 deletions
@@ -42,11 +42,9 @@ public class PrimaryWidgetConfigurationHandler(IMediator mediator,
if (moved.Value is PrimaryCommandConfiguration configuration &&
provider.Get(configuration) is IWidgetComponentViewModel viewModel)
{
await mediator.PublishAsync(
new Moved<IWidgetComponentViewModel>(configuration.Order, viewModel),
await mediator.PublishAsync(new Moved<IWidgetComponentViewModel>(configuration.Order, viewModel),
moved.Key.ParentId == Guid.Empty ? nameof(PrimaryWidgetViewModel) : moved.Key.ParentId,
cancellationToken
);
cancellationToken);
cache.Remove(moved.Key);
cache.Add(moved.Key, moved.Value);