diff --git a/src/Inc.TeamAssistant.WebUI/Extensions/IJsFunction.cs b/src/Inc.TeamAssistant.WebUI/Extensions/IJsFunction.cs index 0895e6ee..06fa7251 100644 --- a/src/Inc.TeamAssistant.WebUI/Extensions/IJsFunction.cs +++ b/src/Inc.TeamAssistant.WebUI/Extensions/IJsFunction.cs @@ -6,5 +6,5 @@ public interface IJsFunction object?[]? Args { get; } - Action? PostAction { get; } + Action? OnExecuted { get; } } \ No newline at end of file diff --git a/src/Inc.TeamAssistant.WebUI/Extensions/JsFunctions.cs b/src/Inc.TeamAssistant.WebUI/Extensions/JsFunctions.cs index 2dafde6d..7e9782ef 100644 --- a/src/Inc.TeamAssistant.WebUI/Extensions/JsFunctions.cs +++ b/src/Inc.TeamAssistant.WebUI/Extensions/JsFunctions.cs @@ -23,7 +23,7 @@ public static IJsFunction ChangeUrl(NavRoute route, Action on private sealed record JsFunction : IJsFunction { public string Identifier { get; } - public Action? PostAction { get; } + public Action? OnExecuted { get; } public object?[]? Args { get; } internal JsFunction(string identifier, Action? postAction, params object?[]? args) @@ -31,7 +31,7 @@ internal JsFunction(string identifier, Action? postAction, params object?[]? arg ArgumentException.ThrowIfNullOrWhiteSpace(identifier); Identifier = identifier; - PostAction = postAction; + OnExecuted = postAction; Args = args; } } diff --git a/src/Inc.TeamAssistant.WebUI/Extensions/JsRuntimeExtensions.cs b/src/Inc.TeamAssistant.WebUI/Extensions/JsRuntimeExtensions.cs index 5fee6856..6a8ecc44 100644 --- a/src/Inc.TeamAssistant.WebUI/Extensions/JsRuntimeExtensions.cs +++ b/src/Inc.TeamAssistant.WebUI/Extensions/JsRuntimeExtensions.cs @@ -11,7 +11,7 @@ public static async ValueTask Execute(this IJSRuntime jsRuntime, var result = await jsRuntime.InvokeAsync(jsFunction.Identifier, jsFunction.Args); - jsFunction.PostAction?.Invoke(); + jsFunction.OnExecuted?.Invoke(); return result; } @@ -23,6 +23,6 @@ public static async ValueTask Execute(this IJSRuntime jsRuntime, IJsFunction