@@ -179,6 +192,11 @@
BlazorAppRadzenLoading.Components.LoadingIndicatorOptions options =
new(true, false, true, 0, 6);
+ BlazorAppRadzenLoading.Components.LoadingIndicatorOptions optionsOnReload =
+ new(false, false, true, 0, 6);
+
+ BlazorAppRadzenLoading.Components.LoadingIndicator? loadingIndicatorOnReload;
+
Organization? organization;
IEnumerable? reposLastUpdated;
IEnumerable? issueGroupsbyLabel;
@@ -219,6 +237,45 @@
options.CurrentStep = 6; // property updates loading component
}
+ private async Task ReloadDataAsync()
+ {
+ //Thread.Sleep(5000); // testing
+ organization = await GetOrganization();
+ await InvokeAsync(StateHasChanged); // update this page
+ optionsOnReload.CurrentStep = 1; // property updates loading component
+
+ //Thread.Sleep(5000); // testing
+ issueGroupsbyLabel = await GetIssueGroupsbyLabel();
+ await InvokeAsync(StateHasChanged); // update this page
+ optionsOnReload.CurrentStep = 2; // property updates loading component
+
+ //Thread.Sleep(5000); // testing
+ issueGroupsbyLabelandCreatedAt = await GetIssueGroupsbyLabelandCreatedAt();
+ await InvokeAsync(StateHasChanged); // update this page
+ optionsOnReload.CurrentStep = 3; // property updates loading component
+
+ //Thread.Sleep(5000); // testing
+ issueGroupsCreatedAt = await GetIssueGroupsCreatedAt();
+ await InvokeAsync(StateHasChanged); // update this page
+ optionsOnReload.CurrentStep = 4; // property updates loading component
+
+ //Thread.Sleep(5000); // testing
+ reposLastUpdated = await GetReposLastUpdated();
+ await InvokeAsync(StateHasChanged); // update this page
+ optionsOnReload.CurrentStep = 5; // property updates loading component
+
+ //Thread.Sleep(5000); // testing
+ issuesLastUpdated = await GetIssuesLastUpdated();
+ await InvokeAsync(StateHasChanged); // update this page
+ optionsOnReload.CurrentStep = 6; // property updates loading component
+ }
+
+ private async Task ReloadButtonClick()
+ {
+ if (loadingIndicatorOnReload is not null)
+ await loadingIndicatorOnReload.Run();
+ }
+
private async Task GetOrganization()
{
using var request = new HttpRequestMessage(HttpMethod.Get,