Skip to content

Commit

Permalink
Update MainLayout.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoCoderMatrix86 committed Dec 20, 2024
1 parent 2758501 commit f8c6a32
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions AudioCuesheetEditor/Shared/Layouts/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ along with Foobar. If not, see
<ChildContent>
<CascadingValue Value="@this">
<MudLayout>
<AppBar DisplayMenu DisplayUndoRedoButtonGroup MenuClicked="() => DrawerToggle()" />
<MudDrawer @bind-Open="_drawerOpen" ClipMode="DrawerClipMode.Always" Elevation="2">
<AppBar DisplayMenu DisplayUndoRedoButtonGroup MenuClicked="() => ToggleDrawer()" />
<MudDrawer @bind-Open="drawerOpen" ClipMode="DrawerClipMode.Always" Elevation="2">
<NavMenu />
</MudDrawer>
<MudMainContent>
Expand All @@ -60,12 +60,11 @@ along with Foobar. If not, see
</ErrorBoundary>

@code {
//TODO
bool _drawerOpen = false;
bool drawerOpen = false;

void DrawerToggle()
void ToggleDrawer()
{
_drawerOpen = !_drawerOpen;
drawerOpen = !drawerOpen;
}

async Task ReloadApplication()
Expand Down

0 comments on commit f8c6a32

Please sign in to comment.