diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-07-17 00:21:24 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-07-17 00:21:24 +0200 |
commit | 1beca653b772cf10586c417b2c25df03a67df8a2 (patch) | |
tree | d539b5f329cb62f253e1bc8142c3a313719657b0 /MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor | |
parent | Changes (diff) | |
download | MatrixUtils-1beca653b772cf10586c417b2c25df03a67df8a2.tar.xz |
Handle external logouts
Diffstat (limited to 'MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor')
-rw-r--r-- | MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor b/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor index 09b5c32..b800989 100644 --- a/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor +++ b/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor @@ -1,16 +1,20 @@ -<a href="@href" class="btn btn-primary" style="background-color: @(Color ?? "#1b6ec2");"> +<a href="@href" class="btn btn-primary" @onclick="@(() => OnClick?.Invoke())" + style="background-color: @(Color ?? "#1b6ec2");"> @ChildContent </a> @code { - + [Parameter] - public string href { get; set; } - + public string? href { get; set; } + [Parameter] public RenderFragment ChildContent { get; set; } [Parameter] public string? Color { get; set; } -} \ No newline at end of file + [Parameter] + public Func<Task>? OnClick { get; set; } + +} |