diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-10-05 16:47:49 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-10-05 16:47:49 +1100 |
| commit | 2c6e3aa4456811a3d6412fc10019012a900eb6a0 (patch) | |
| tree | d0616bbe573a4abe5aaf9f80e7960a40352967b8 /Pages/Component/AclActionSwitch.razor | |
| parent | 035d2e3858dd55580c294031573c3be9e1999449 (diff) | |
| parent | 3d5f6e47bd74ce77d5ec253f51b7cef1b42099ef (diff) | |
Merged security
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 |
