Browse Source

use switch instead of button

pull/72/head
Jason Dove 5 years ago
parent
commit
f9a3d1da63
  1. 11
      ErsatzTV/Pages/PlexLibrariesEditor.razor

11
ErsatzTV/Pages/PlexLibrariesEditor.razor

@ -28,16 +28,7 @@ @@ -28,16 +28,7 @@
<MudTd DataLabel="Name">@context.Name</MudTd>
<MudTd DataLabel="MediaType">@context.MediaKind</MudTd>
<MudTd DataLabel="Synchronize">
<div style="display: flex; justify-content: center">
@if (context.ShouldSyncItems)
{
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="@(() => context.ShouldSyncItems = !context.ShouldSyncItems)">Yes</MudButton>
}
else
{
<MudButton Variant="Variant.Filled" Color="Color.Dark" OnClick="@(() => context.ShouldSyncItems = !context.ShouldSyncItems)">No</MudButton>
}
</div>
<MudSwitch T="bool" @bind-Checked="@context.ShouldSyncItems" Color="Color.Primary" />
</MudTd>
</RowTemplate>
</MudTable>

Loading…
Cancel
Save