28 lines
707 B
C#
28 lines
707 B
C#
|
using Microsoft.AspNetCore.Components;
|
|||
|
|
|||
|
namespace TireTargets.Components.Layout
|
|||
|
{
|
|||
|
public partial class MainLayout
|
|||
|
{
|
|||
|
public static readonly bool isDev = true;
|
|||
|
|
|||
|
public static Dictionary<string, string> Session = new Dictionary<string, string>();
|
|||
|
public static bool isSignedIn = false;
|
|||
|
private static bool isModalVisible = false;
|
|||
|
|
|||
|
public static void SignOut()
|
|||
|
{
|
|||
|
Session = new Dictionary<string, string>();
|
|||
|
isSignedIn = false;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
public static void ToggleModal()
|
|||
|
{
|
|||
|
isModalVisible = !isModalVisible;
|
|||
|
Console.WriteLine("Modal is now " + isModalVisible);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|