Commit 60c045f4 authored by Ryan Nowak's avatar Ryan Nowak
Browse files

Remove wait dialog

parent 96a69a67
......@@ -46,11 +46,6 @@
</div>
</div>
@if (showWaitDialog)
{
<WaitDialog Message="@waitDialogMessage" />
}
@if (showConfigurePizzaDialog)
{
<ConfigurePizzaDialog
......@@ -62,9 +57,6 @@
@functions {
[CascadingParameter] UserStateProvider UserState { get; set; }
bool showWaitDialog;
string waitDialogMessage;
bool showConfigurePizzaDialog;
Pizza pizza;
......@@ -76,13 +68,7 @@
protected async override Task OnInitAsync()
{
showWaitDialog = true;
waitDialogMessage = "Loading Specials";
specials = await HttpClient.GetJsonAsync<List<PizzaSpecial>>("/specials");
showWaitDialog = false;
waitDialogMessage = null;
}
void ShowConfigurePizzaDialog(PizzaSpecial special)
......@@ -128,9 +114,6 @@
Pizzas = configuredPizzas,
};
showWaitDialog = true;
waitDialogMessage = "Placing order...";
// The server will reject the submission if you're not signed in, so attempt
// to sign in first if needed
if (await UserState.TrySignInAsync())
......@@ -139,11 +122,5 @@
configuredPizzas.Clear();
UriHelper.NavigateTo("myorders");
}
else
{
// Aborted
showWaitDialog = false;
waitDialogMessage = null;
}
}
}
<div class="dialog-container">
<div class="dialog">
<div class="dialog-title">
<h2>@Message</h2>
</div>
</div>
</div>
@functions {
[Parameter] string Message { get; set; }
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment