diff --git a/OryAdmin/Components/Pages/Home.razor b/OryAdmin/Components/Pages/Home.razor
index 31ba50d..3765f32 100644
--- a/OryAdmin/Components/Pages/Home.razor
+++ b/OryAdmin/Components/Pages/Home.razor
@@ -1,6 +1,6 @@
@page "/"
@inject EnvService env
-@attribute [StreamRendering]
+@rendermode InteractiveServer
Services | OryAdmin
diff --git a/OryAdmin/Components/Pages/Identities/Messages/Index.razor b/OryAdmin/Components/Pages/Identities/Messages/Index.razor
index b0fd88d..cd4d170 100644
--- a/OryAdmin/Components/Pages/Identities/Messages/Index.razor
+++ b/OryAdmin/Components/Pages/Identities/Messages/Index.razor
@@ -1,5 +1,5 @@
@page "/identities/messages"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
Message Log | OryAdmin
@@ -45,6 +45,6 @@ else
-
+
}
}
\ No newline at end of file
diff --git a/OryAdmin/Components/Pages/Identities/Messages/Index.razor.cs b/OryAdmin/Components/Pages/Identities/Messages/Index.razor.cs
index 329f7f5..7a8224b 100644
--- a/OryAdmin/Components/Pages/Identities/Messages/Index.razor.cs
+++ b/OryAdmin/Components/Pages/Identities/Messages/Index.razor.cs
@@ -11,15 +11,14 @@ public partial class Index : ComponentBase
private List _messages;
[SupplyParameterFromQuery(Name = "page")]
- private int? PageNr { get; set; }
+ // ReSharper disable once AutoPropertyCanBeMadeGetOnly.Local
+ private int PageNr { get; set; } = 1;
[Inject] private IdentitySchemaService SchemaService { get; set; } = default!;
[Inject] private ApiService ApiService { get; set; } = default!;
protected override async Task OnInitializedAsync()
{
- PageNr ??= 1;
-
// TODO use pagination to support a large amount
_messages = await ApiService.KratosCourier.ListCourierMessagesAsync();
diff --git a/OryAdmin/Components/Pages/Identities/Messages/View.razor b/OryAdmin/Components/Pages/Identities/Messages/View.razor
index b508aae..2e311c8 100644
--- a/OryAdmin/Components/Pages/Identities/Messages/View.razor
+++ b/OryAdmin/Components/Pages/Identities/Messages/View.razor
@@ -1,6 +1,6 @@
@page "/identities/messages/{MessageId}"
@using Ory.Kratos.Client.Model
-@attribute [StreamRendering]
+@rendermode InteractiveServer
View Message | OryAdmin
diff --git a/OryAdmin/Components/Pages/Identities/Schemas/Index.razor b/OryAdmin/Components/Pages/Identities/Schemas/Index.razor
index f9b2837..6c4aebd 100644
--- a/OryAdmin/Components/Pages/Identities/Schemas/Index.razor
+++ b/OryAdmin/Components/Pages/Identities/Schemas/Index.razor
@@ -1,5 +1,5 @@
@page "/identities/schemas"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
Identity Schemas | OryAdmin
diff --git a/OryAdmin/Components/Pages/Identities/Users/Create.razor b/OryAdmin/Components/Pages/Identities/Users/Create.razor
index 8012df3..ae53bda 100644
--- a/OryAdmin/Components/Pages/Identities/Users/Create.razor
+++ b/OryAdmin/Components/Pages/Identities/Users/Create.razor
@@ -1,5 +1,5 @@
@page "/identities/users/create"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
Create Identity | OryAdmin
diff --git a/OryAdmin/Components/Pages/Identities/Users/Edit.razor b/OryAdmin/Components/Pages/Identities/Users/Edit.razor
index 3d320bf..a2e9607 100644
--- a/OryAdmin/Components/Pages/Identities/Users/Edit.razor
+++ b/OryAdmin/Components/Pages/Identities/Users/Edit.razor
@@ -1,5 +1,5 @@
@page "/identities/users/{UserId}/edit"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
Edit Identity | OryAdmin
diff --git a/OryAdmin/Components/Pages/Identities/Users/Index.razor b/OryAdmin/Components/Pages/Identities/Users/Index.razor
index 1597a0c..8d61bb3 100644
--- a/OryAdmin/Components/Pages/Identities/Users/Index.razor
+++ b/OryAdmin/Components/Pages/Identities/Users/Index.razor
@@ -1,5 +1,5 @@
@page "/identities/users"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
Identities | OryAdmin
@@ -49,6 +49,6 @@ else
}
-
+
}
}
\ No newline at end of file
diff --git a/OryAdmin/Components/Pages/Identities/Users/Index.razor.cs b/OryAdmin/Components/Pages/Identities/Users/Index.razor.cs
index e12b3aa..583d245 100644
--- a/OryAdmin/Components/Pages/Identities/Users/Index.razor.cs
+++ b/OryAdmin/Components/Pages/Identities/Users/Index.razor.cs
@@ -10,15 +10,14 @@ public partial class Index
private bool _isLoading = true;
[SupplyParameterFromQuery(Name = "page")]
- private int? PageNr { get; set; }
+ // ReSharper disable once UnusedAutoPropertyAccessor.Local
+ private int PageNr { get; set; }
[Inject] private IdentitySchemaService SchemaService { get; set; } = default!;
[Inject] private ApiService ApiService { get; set; } = default!;
protected override async Task OnInitializedAsync()
{
- PageNr ??= 1;
-
// TODO use pagination to support a large amount of identities
_identities = await ApiService.KratosIdentity.ListIdentitiesAsync();
diff --git a/OryAdmin/Components/Pages/Identities/Users/View.razor b/OryAdmin/Components/Pages/Identities/Users/View.razor
index e90cf2b..a708182 100644
--- a/OryAdmin/Components/Pages/Identities/Users/View.razor
+++ b/OryAdmin/Components/Pages/Identities/Users/View.razor
@@ -1,5 +1,5 @@
@page "/identities/users/{UserId}"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
View Identity | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/Clients/Create.razor b/OryAdmin/Components/Pages/OAuth2/Clients/Create.razor
index fe5612f..37ce228 100644
--- a/OryAdmin/Components/Pages/OAuth2/Clients/Create.razor
+++ b/OryAdmin/Components/Pages/OAuth2/Clients/Create.razor
@@ -1,5 +1,5 @@
@page "/oauth2/clients/create"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
Create Client | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/Clients/Edit.razor b/OryAdmin/Components/Pages/OAuth2/Clients/Edit.razor
index b4b7582..708e752 100644
--- a/OryAdmin/Components/Pages/OAuth2/Clients/Edit.razor
+++ b/OryAdmin/Components/Pages/OAuth2/Clients/Edit.razor
@@ -1,5 +1,5 @@
@page "/oauth2/clients/{ClientId}/edit"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
Edit Client | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/Clients/Index.razor b/OryAdmin/Components/Pages/OAuth2/Clients/Index.razor
index afc826d..a70c125 100644
--- a/OryAdmin/Components/Pages/OAuth2/Clients/Index.razor
+++ b/OryAdmin/Components/Pages/OAuth2/Clients/Index.razor
@@ -1,5 +1,5 @@
@page "/oauth2/clients"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
OAuth 2 Clients | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/Clients/Sessions.razor b/OryAdmin/Components/Pages/OAuth2/Clients/Sessions.razor
index d3f6f32..720f869 100644
--- a/OryAdmin/Components/Pages/OAuth2/Clients/Sessions.razor
+++ b/OryAdmin/Components/Pages/OAuth2/Clients/Sessions.razor
@@ -1,5 +1,5 @@
@page "/oauth2/clients/{ClientId}/sessions"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
OAuth 2 Client Sessions | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/Clients/View.razor b/OryAdmin/Components/Pages/OAuth2/Clients/View.razor
index a872b76..0204945 100644
--- a/OryAdmin/Components/Pages/OAuth2/Clients/View.razor
+++ b/OryAdmin/Components/Pages/OAuth2/Clients/View.razor
@@ -1,5 +1,5 @@
@page "/oauth2/clients/{ClientId}"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
View OAuth 2 Client | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Create.razor b/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Create.razor
index d5d9fce..8761226 100644
--- a/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Create.razor
+++ b/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Create.razor
@@ -1,5 +1,5 @@
@page "/oauth2/issuers/create"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
Trust Grant Issuer | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Index.razor b/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Index.razor
index c4ad029..af25314 100644
--- a/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Index.razor
+++ b/OryAdmin/Components/Pages/OAuth2/GrantIssuers/Index.razor
@@ -1,5 +1,5 @@
@page "/oauth2/issuers"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
OAuth 2 JWT Grant Issuers | OryAdmin
diff --git a/OryAdmin/Components/Pages/OAuth2/Index.razor b/OryAdmin/Components/Pages/OAuth2/Index.razor
index a8c042e..eb66d2c 100644
--- a/OryAdmin/Components/Pages/OAuth2/Index.razor
+++ b/OryAdmin/Components/Pages/OAuth2/Index.razor
@@ -1,5 +1,5 @@
@page "/oauth2"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
OAuth 2 Information | OryAdmin
OAuth 2 Information
diff --git a/OryAdmin/Components/Pages/Permissions/Index.razor b/OryAdmin/Components/Pages/Permissions/Index.razor
index e05d294..a4a3c3b 100644
--- a/OryAdmin/Components/Pages/Permissions/Index.razor
+++ b/OryAdmin/Components/Pages/Permissions/Index.razor
@@ -1,5 +1,5 @@
@page "/permissions"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
Permission Namespaces | OryAdmin
diff --git a/OryAdmin/Components/Pages/Permissions/Relationships/Create.razor b/OryAdmin/Components/Pages/Permissions/Relationships/Create.razor
index e09d23d..5603ea8 100644
--- a/OryAdmin/Components/Pages/Permissions/Relationships/Create.razor
+++ b/OryAdmin/Components/Pages/Permissions/Relationships/Create.razor
@@ -1,5 +1,5 @@
@page "/permissions/{NamespaceName}/create"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
@inject NavigationManager nav
Create Relationship | OryAdmin
diff --git a/OryAdmin/Components/Pages/Permissions/Relationships/Index.razor b/OryAdmin/Components/Pages/Permissions/Relationships/Index.razor
index 5ca20ab..a310892 100644
--- a/OryAdmin/Components/Pages/Permissions/Relationships/Index.razor
+++ b/OryAdmin/Components/Pages/Permissions/Relationships/Index.razor
@@ -1,5 +1,5 @@
@page "/permissions/{NamespaceName}"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
Relationships | OryAdmin
diff --git a/OryAdmin/Components/Pages/Permissions/Relationships/Tree.razor b/OryAdmin/Components/Pages/Permissions/Relationships/Tree.razor
index e46a93f..d6c68e8 100644
--- a/OryAdmin/Components/Pages/Permissions/Relationships/Tree.razor
+++ b/OryAdmin/Components/Pages/Permissions/Relationships/Tree.razor
@@ -1,5 +1,5 @@
@page "/permissions/{NamespaceName}/tree"
-@attribute [StreamRendering]
+@rendermode InteractiveServer
Permission Tree | OryAdmin
diff --git a/OryAdmin/Components/_Imports.razor b/OryAdmin/Components/_Imports.razor
index 14edf8c..fc457af 100644
--- a/OryAdmin/Components/_Imports.razor
+++ b/OryAdmin/Components/_Imports.razor
@@ -3,6 +3,7 @@
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
+@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@using OryAdmin