Skip to content

Commit

Permalink
turn off functionality for bogle.tools. only show migration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Sep 30, 2024
1 parent e2d7ef2 commit ecf266c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Pages/MigrationWarning.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<b style=font-size:24pt>Time Critical:</b><br/>
This site has moved to <a href=https://multifol.io target=_blank>multifol.io</a><br/>
1) SHORTCUTS: Please update any shortcuts you use to navigate to the new site.<br/>
2) DATA MIGRATION: If you have used this site to enter your portfolio, RSUs, or savings plan, you need to migrate your data. See details: <a href="https://www.bogleheads.org/forum/viewtopic.php?p=7931753#p7931753" target=_blank>data migration instructions</a>.
2) DATA MIGRATION: If you have used this site to enter your portfolio, RSUs, or savings plan, you need to migrate your data. Please email rob@multifol.io for instructions.
</p>
}
11 changes: 9 additions & 2 deletions Shared/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@inherits LayoutComponentBase
@inject NavigationManager Navigation

<div class="page">
<div class="sidebar">
Expand All @@ -9,8 +10,14 @@
<article class="content px-4">
<MyErrorBoundary @ref="boundary">
<ChildContent>
<MigrationWarning />
@Body
@if (new Uri(Navigation.Uri).Host == "bogle.tools")
{
<MigrationWarning />
}
else
{
@Body
}
</ChildContent>
<ErrorContent>
<div style="display: table; height: 400px; overflow: hidden;">
Expand Down

0 comments on commit ecf266c

Please sign in to comment.