Skip to content

Commit

Permalink
Feature/update package (#618)
Browse files Browse the repository at this point in the history
* fix: fix #549

* feat: update package

---------

Co-authored-by: yanpengju <[email protected]>
  • Loading branch information
codding-y and yanpengju authored Jul 13, 2023
1 parent bb3eb78 commit 387510c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public partial class ProjectList
public EventCallback<int> FetchProjectCount { get; set; }

[Parameter]
public string Environment { get; set; } = string.Empty;
public IMultiEnvironmentUserContext MultiEnvironmentUserContext { get; set; } = default!;

[Inject]
public ProjectCaller ProjectCaller { get; set; } = default!;
Expand Down Expand Up @@ -91,7 +91,7 @@ public async Task InitDataAsync()
_projects = await ProjectCaller.GetListByTeamIdAsync(new List<Guid> { TeamId });
}

_allTeams = await AuthClient.TeamService.GetAllAsync(Environment);
_allTeams = await AuthClient.TeamService.GetAllAsync(MultiEnvironmentUserContext.Environment ?? "");
_backupProjects = new List<ProjectModel>(_projects.ToArray());
var projectIds = _projects.Select(p => p.Id).ToList();
_apps = await GetAppByProjectIdAsync(projectIds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
global using FluentValidation;
global using Mapster;
global using Masa.Blazor;
global using Masa.BuildingBlocks.Authentication.Identity;
global using Masa.BuildingBlocks.StackSdks.Auth.Contracts;
global using Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model;
global using Masa.BuildingBlocks.StackSdks.Pm.Model;
Expand Down

0 comments on commit 387510c

Please sign in to comment.