diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-10-03 16:41:58 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-10-03 16:41:58 +1100 |
| commit | 33438ac951430fa370965b42a3d98a54e704ab01 (patch) | |
| tree | fbd835c25ac7566e8437cd0ef988fce0596a15e7 /Pages/Component/AclActionSwitch.razor | |
| parent | 7170867a9a2650fa5a98b9e2664fb2114a0bf114 (diff) | |
AclDialog
Diffstat (limited to 'Pages/Component/AclActionSwitch.razor')
| -rw-r--r-- | Pages/Component/AclActionSwitch.razor | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Pages/Component/AclActionSwitch.razor b/Pages/Component/AclActionSwitch.razor new file mode 100644 index 0000000..8bc61d2 --- /dev/null +++ b/Pages/Component/AclActionSwitch.razor @@ -0,0 +1,20 @@ +<label> + <input + type="checkbox" + checked=@InitialValue + @onchange=@(e => OnToggle.InvokeAsync((e.Value as bool?) ?? false)) + hidden> + <div class="outer"> + <p>Deny</p> + <p>Allow</p> + <div class="inner"/> + </div> +</label> + +@code { + [Parameter] + public bool InitialValue { get; set; } = false; + + [Parameter] + public EventCallback<bool> OnToggle { get; set; } +}
\ No newline at end of file |
