Skip to content

Commit c70d267

Browse files
committed
Fix reconnect UI in project template for auto & global interactive
1 parent 1f82fa5 commit c70d267

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config/template.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@
9898
"exclude": [
9999
"BlazorWeb-CSharp/Components/Layout/ReconnectModal.razor",
100100
"BlazorWeb-CSharp/Components/Layout/ReconnectModal.razor.css",
101-
"BlazorWeb-CSharp/Components/Layout/ReconnectModal.razor.js"
101+
"BlazorWeb-CSharp/Components/Layout/ReconnectModal.razor.js",
102+
"BlazorWeb-CSharp.Client/Layout/ReconnectModal.razor",
103+
"BlazorWeb-CSharp.Client/Layout/ReconnectModal.razor.css",
104+
"BlazorWeb-CSharp.Client/Layout/ReconnectModal.razor.js"
102105
]
103106
},
104107
{

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Layout/MainLayout.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
</div>
3030
##endif*@
3131
@*#if (UseServer) -->
32+
3233
<ReconnectModal />
3334
##endif*@

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Layout/ReconnectModal.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<script type="module" src="@Assets["Components/Layout/ReconnectModal.razor.js"]"></script>
1+
@*#if (UseWebAssembly && InteractiveAtRoot) -->
2+
<script type="module" src="@Assets["Layout/ReconnectModal.razor.js"]"></script>
3+
##else
4+
<script type="module" src="@Assets["Components/Layout/ReconnectModal.razor.js"]"></script>
5+
##endif*@
26

37
<dialog id="components-reconnect-modal" data-nosnippet>
48
<div class="components-reconnect-container">

0 commit comments

Comments
 (0)