Skip to content

Commit

Permalink
🐛 fix: fix error CS0449 (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem committed Jul 17, 2023
1 parent 94d2de0 commit 986e39b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions Masa.Blazor.Pro/Pages/App/Invoice/Add.razor
Original file line number Diff line number Diff line change
Expand Up @@ -206,19 +206,19 @@
</div>
@if (IsEdit)
{
<div class="mt-2">
<MButton Block class="success" OnClick="()=>{ _showAddPayment = true; }">Add Payment</MButton>
</div>
<div class="mt-2">
<MButton Block class="success" OnClick="()=>{ _showAddPayment = true; }">Add Payment</MButton>
</div>
}

</MCardText>
</MCard>

<div class="mt-4">
<MSelect BackgroundColor="white" Items=_payments ItemValue="u => u" Dense Label="Accept Payment Via" ItemText="u => u" Outlined @bind-Value=_payment></MSelect>
<MSwitch Value=true Class="mt-n3" Color="#7367f0" Label="Payment Terms"></MSwitch>
<MSwitch Value=true Class="mt-n3" Color="#7367f0" Label="Client Notes"></MSwitch>
<MSwitch Class="mt-n3" Color="#7367f0" Label="Payment Stub" TValue="bool"></MSwitch>
<MSwitch TValue="bool" Value=true Class="mt-n3" Color="#7367f0" Label="Payment Terms"></MSwitch>
<MSwitch TValue="bool" Value=true Class="mt-n3" Color="#7367f0" Label="Client Notes"></MSwitch>
<MSwitch TValue="bool" Class="mt-n3" Color="#7367f0" Label="Payment Stub"></MSwitch>
</div>
</MCol>
</MRow>
Expand Down
2 changes: 1 addition & 1 deletion Masa.Blazor.Pro/Pages/App/Todo/Todo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
{
<MListItem Style="height:58px;" Dense Link OnClick="() => ShowDetail(item)">
<span @onclick:stopPropagation>
<MCheckbox Class="pa-0 ma-0" @bind-Value=@item.IsChecked Color="primary"></MCheckbox>
<MCheckbox TValue="bool" Class="pa-0 ma-0" @bind-Value=@item.IsChecked Color="primary"></MCheckbox>
</span>

<MListItemContent Class="text-body neutral-lighten-2--text">
Expand Down
8 changes: 4 additions & 4 deletions Masa.Blazor.Pro/Pages/App/User/Edit.razor
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@
<span class="text-body neutral-lighten-2--text">@context.Value</span>
break;
case nameof(PermissionDto.Read):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Read"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Read"></MCheckbox>
break;
case nameof(PermissionDto.Write):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Write"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Write"></MCheckbox>
break;
case nameof(PermissionDto.Create):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Create"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Create"></MCheckbox>
break;
case nameof(PermissionDto.Delete):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Delete"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Delete"></MCheckbox>
break;
default:
@context.Value
Expand Down
8 changes: 4 additions & 4 deletions Masa.Blazor.Pro/Pages/App/User/View.razor
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@
<span class="text-body neutral-lighten-2--text">@context.Value</span>
break;
case nameof(PermissionDto.Read):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Read"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Read"></MCheckbox>
break;
case nameof(PermissionDto.Write):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Write"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Write"></MCheckbox>
break;
case nameof(PermissionDto.Create):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Create"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Create"></MCheckbox>
break;
case nameof(PermissionDto.Delete):
<MCheckbox Class="mt-0" Color="primary" @bind-Value="context.Item.Delete"></MCheckbox>
<MCheckbox TValue="bool" Class="mt-0" Color="primary" @bind-Value="context.Item.Delete"></MCheckbox>
break;
default:
@context.Value
Expand Down

0 comments on commit 986e39b

Please sign in to comment.