fix: add @rendermode InteractiveWebAssembly to all admin pages
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m14s
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m14s
Problem: Page components were not rendering content because @rendermode was only on App.razor and Routes.razor, not on individual @page components. Solution: Add @rendermode InteractiveWebAssembly to all admin page components to ensure they render interactively in WebAssembly context. Result: All admin pages now render their content correctly. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@page "/admin"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@page "/admin/announcements/create"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@page "/admin/announcements/{Id:int}/edit"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Application.DTOs
|
||||
@using TaxBaik.Web.Services
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/announcements"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@using TaxBaik.Domain.Entities
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/blog/create"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Application.DTOs
|
||||
@using TaxBaik.WasmClient.Components.Admin.Pages.Blog
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/blog/{id:int}/edit"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Application.DTOs
|
||||
@using TaxBaik.WasmClient.Components.Admin.Pages.Blog
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/blog"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@inject IBlogBrowserClient BlogClient
|
||||
@inject ISnackbar Snackbar
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/clients/{ClientId:int}"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@using TaxBaik.Web.Services.AdminClients
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@page "/admin/clients/create"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@page "/admin/clients/{Id:int}/edit"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Application.DTOs
|
||||
@using TaxBaik.Web.Services
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/clients"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@using TaxBaik.Domain.Entities
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/common-codes"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@using TaxBaik.Web.Services.AdminClients
|
||||
@using TaxBaik.Domain.Entities
|
||||
@attribute [Authorize]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/companies/create"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.WasmClient.Components.Admin.Forms
|
||||
@inject IApiClient ApiClient
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/companies/{id:int}/edit"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.WasmClient.Components.Admin.Forms
|
||||
@inject IApiClient ApiClient
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/companies"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@inject IApiClient ApiClient
|
||||
@inject ISnackbar Snackbar
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/consulting-activities"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@using TaxBaik.Web.Services.AdminClients
|
||||
@using TaxBaik.WasmClient.Components.Admin.Shared
|
||||
@inject IConsultingActivityBrowserClient ActivityClient
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/contracts"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@using TaxBaik.Web.Services.AdminClients
|
||||
@using TaxBaik.WasmClient.Components.Admin.Shared
|
||||
@inject IContractBrowserClient ContractClient
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/dashboard"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@using TaxBaik.WasmClient.Components.Admin.Shared
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@page "/admin/faqs/create"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@page "/admin/faqs/{Id:int}/edit"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@using TaxBaik.Domain.Entities
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/faqs"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@using TaxBaik.Domain.Entities
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/inquiries/create"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Application.DTOs
|
||||
@using TaxBaik.WasmClient.Components.Admin.Forms
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/inquiries/{InquiryId:int}"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@inject IInquiryBrowserClient InquiryClient
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/inquiries/{id:int}/edit"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Application.DTOs
|
||||
@using TaxBaik.WasmClient.Components.Admin.Forms
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/inquiries"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@inject IInquiryBrowserClient InquiryClient
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/logout"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@using TaxBaik.Web.Services
|
||||
@inject CustomAuthenticationStateProvider AuthStateProvider
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/revenue-trackings"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@using TaxBaik.Web.Services.AdminClients
|
||||
@using TaxBaik.WasmClient.Components.Admin.Shared
|
||||
@inject IRevenueTrackingBrowserClient RevenueClient
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/season-simulator"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Application.Seasonal
|
||||
@using TaxBaik.Application.Services
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/settings"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using System.ComponentModel.DataAnnotations
|
||||
@using System.Collections.Generic
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/tax-filing-schedules"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@using TaxBaik.Web.Services.AdminClients
|
||||
@using TaxBaik.Domain.Entities
|
||||
@using TaxBaik.WasmClient.Components.Admin.Shared
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/tax-filings"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@attribute [Authorize]
|
||||
@using TaxBaik.Web.Services
|
||||
@using TaxBaik.Domain.Entities
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@page "/admin/tax-profiles"
|
||||
@rendermode InteractiveWebAssembly
|
||||
@using TaxBaik.Web.Services.AdminClients
|
||||
@using TaxBaik.WasmClient.Components.Admin.Shared
|
||||
@inject ITaxProfileBrowserClient TaxProfileClient
|
||||
|
||||
Reference in New Issue
Block a user