Skip to content

Commit 549e5fa

Browse files
committed
Minor organization and project page updates
- Update organization service and page references - Update project settings page
1 parent 38ed656 commit 549e5fa

7 files changed

Lines changed: 12 additions & 10 deletions

File tree

cloud/src/LrmCloud.Api/Services/OrganizationService.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,16 @@ public OrganizationService(
6262
}
6363
}
6464

65-
// Create organization
65+
// Create organization - organizations always start on team plan
66+
// (free tier doesn't support team features)
6667
var organization = new Organization
6768
{
6869
Name = request.Name,
6970
Slug = slug,
7071
Description = request.Description,
7172
OwnerId = userId,
72-
Plan = "free",
73+
Plan = "team",
74+
TranslationCharsLimit = _config.Limits.TeamTranslationChars,
7375
CreatedAt = DateTime.UtcNow,
7476
UpdatedAt = DateTime.UtcNow
7577
};

cloud/src/LrmCloud.Web/Pages/Organizations/ApiKeys.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/app/organizations/{OrganizationId:int}/api-keys"
1+
@page "/organizations/{OrganizationId:int}/api-keys"
22
@using LrmCloud.Shared.DTOs.Organizations
33
@using LrmCloud.Shared.DTOs.Translation
44
@using LrmCloud.Web.Services
@@ -301,7 +301,7 @@
301301

302302
if (_organization != null)
303303
{
304-
_canManageKeys = _organization.UserRole is "Owner" or "Admin";
304+
_canManageKeys = _organization.UserRole is "owner" or "admin";
305305

306306
_breadcrumbs = new List<BreadcrumbItem>
307307
{

cloud/src/LrmCloud.Web/Pages/Organizations/Detail.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/app/organizations/{OrganizationId:int}"
1+
@page "/organizations/{OrganizationId:int}"
22
@attribute [Authorize]
33
@using LrmCloud.Shared.Constants
44
@using LrmCloud.Shared.DTOs.Organizations

cloud/src/LrmCloud.Web/Pages/Organizations/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/app/organizations"
1+
@page "/organizations"
22
@attribute [Authorize]
33
@using LrmCloud.Shared.Constants
44
@using LrmCloud.Shared.DTOs.Organizations

cloud/src/LrmCloud.Web/Pages/Organizations/Members.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/app/organizations/{OrganizationId:int}/members"
1+
@page "/organizations/{OrganizationId:int}/members"
22
@attribute [Authorize]
33
@using LrmCloud.Shared.Constants
44
@using LrmCloud.Shared.DTOs.Organizations

cloud/src/LrmCloud.Web/Pages/Organizations/Settings.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/app/organizations/{OrganizationId:int}/settings"
1+
@page "/organizations/{OrganizationId:int}/settings"
22
@attribute [Authorize]
33
@using LrmCloud.Shared.Constants
44
@using LrmCloud.Shared.DTOs.Organizations

cloud/src/LrmCloud.Web/Pages/Projects/Settings.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/app/projects/{ProjectId:int}/settings"
1+
@page "/projects/{ProjectId:int}/settings"
22
@attribute [Authorize]
33
@using LrmCloud.Shared.DTOs.Projects
44
@using LrmCloud.Shared.DTOs.Resources
@@ -117,7 +117,7 @@ else
117117
Disabled="_isSubmitting || _loadingOrganizations"
118118
HelperText="Assign this project to an organization or keep as personal">
119119
<MudSelectItem Value="@((int?)null)">Personal Project</MudSelectItem>
120-
@foreach (var org in _organizations.Where(o => o.UserRole is "Owner" or "Admin"))
120+
@foreach (var org in _organizations.Where(o => o.UserRole is "owner" or "admin"))
121121
{
122122
<MudSelectItem Value="@((int?)org.Id)">@org.Name</MudSelectItem>
123123
}

0 commit comments

Comments
 (0)