Skip to content

Commit

Permalink
#383 - Cleanup view model.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Jun 5, 2022
1 parent 1c20e43 commit 8bb0bf4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Money.Blazor.Host/Pages/Users/Settings.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,21 +185,13 @@ public override Task SetAsync()
public class SortPropertyViewModel<T> : PropertyViewModel
where T : struct
{
public List<(string Name, T Value)> Properties { get; set; }
public T Property { get; set; }
public List<(string Name, SortDirection Value)> Directions { get; set; }
public SortDirection Direction { get; set; }

public async override Task InitializeAsync()
{
await base.InitializeAsync();

Properties = new List<(string Name, T Value)>();
SortButton<T>.BuildItems(Properties);

Directions = new List<(string Name, SortDirection Value)>();
SortButton<SortDirection>.BuildItems(Directions);

if (CurrentValue != null)
{
string[] parts = CurrentValue.Split('-');
Expand Down

0 comments on commit 8bb0bf4

Please sign in to comment.