Compare commits
No commits in common. "038dcc9894bb78519a71903c8e30b0081f13a37b" and "c3b2d5e15f049e8fd40f3b74896df94ed570ba2a" have entirely different histories.
038dcc9894
...
c3b2d5e15f
2 changed files with 0 additions and 20 deletions
|
|
@ -1,5 +1,4 @@
|
|||
@inject GlobalStuffService GlobalStuffService
|
||||
@rendermode InteractiveServer
|
||||
|
||||
@if (GlobalStuffService.OrdersLocked)
|
||||
{
|
||||
|
|
@ -10,19 +9,3 @@
|
|||
<p style="font-size: 1.5em; color: limegreen;"> @GlobalStuffService.Message </p>
|
||||
|
||||
}
|
||||
|
||||
@code{
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
EventHandler Reload = async (sender, eventArgs) =>
|
||||
{
|
||||
await InvokeAsync(StateHasChanged);
|
||||
};
|
||||
GlobalStuffService.OnLockOrMessageChange += Reload;
|
||||
}
|
||||
|
||||
|
||||
void ReloadState(){
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ namespace PizzaBot.Services
|
|||
private bool _ordersLocked;
|
||||
public readonly string LOCKED_ORDERS_MESSAGE = "Orders have been locked. Pizza will be ordered soon.";
|
||||
|
||||
public event EventHandler OnLockOrMessageChange;
|
||||
public int MeatPizzas { get; set; }
|
||||
public int VeggiePizzas { get; set; }
|
||||
public int VeganPizzas { get; set; }
|
||||
|
|
@ -33,7 +32,6 @@ namespace PizzaBot.Services
|
|||
public void SetMessage(string message)
|
||||
{
|
||||
_message = message;
|
||||
OnLockOrMessageChange(this, null);
|
||||
}
|
||||
|
||||
public void SetOrdersLocked(bool ordersLocked)
|
||||
|
|
@ -41,7 +39,6 @@ namespace PizzaBot.Services
|
|||
_ordersLocked = ordersLocked;
|
||||
|
||||
ShouldBalance = true;
|
||||
OnLockOrMessageChange(this, null);
|
||||
}
|
||||
|
||||
public PizzaConfig? GetConfig()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue