Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalii-bezuhlyi committed Jul 2, 2024
1 parent 090d76f commit c7ad50f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Apps.XtrfCustomerPortal/Actions/ProjectActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public async Task<ProjectResponse> CreateProject([ActionParameter] CreateProject
return new ProjectResponse(projectDto);
}

[Action("Download project files", Description = "Download project translation files")]
[Action("Download project translated files", Description = "Download project translation files")]
public async Task<DownloadProjectFilesResponse> DownloadProjectFiles([ActionParameter] ProjectIdentifier projectIdentifier)
{
var taskFilesDto = await Client.ExecuteRequestAsync<TaskFilesDto>($"/projects/{projectIdentifier.ProjectId}/files", Method.Get, null);
Expand Down
3 changes: 1 addition & 2 deletions Apps.XtrfCustomerPortal/Api/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public async Task<T> ExecuteRequestAsync<T>(string endpoint, Method method, obje
request.WithJsonBody(bodyObj);
}

var response = await ExecuteWithErrorHandling<T>(request);
return response;
return await ExecuteWithErrorHandling<T>(request);
}

public async Task<RestResponse> ExecuteRequestAsync(string endpoint, Method method, object? bodyObj, string? acceptHeader = null)
Expand Down
8 changes: 5 additions & 3 deletions Apps.XtrfCustomerPortal/Models/Dtos/TaskFilesDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ namespace Apps.XtrfCustomerPortal.Models.Dtos;
public class TaskFilesDto
{
public int Id { get; set; }

public string IdNumber { get; set; }
public List<TaskFile> TasksFiles { get; set; }

public bool OutputFilesAsZipDownloadable { get; set; }

public class TaskFile
{
public int Id { get; set; }
public string Id { get; set; }
public string IdNumber { get; set; }
public LanguageCombination LanguageCombination { get; set; }
public FileGroup InputWorkfiles { get; set; }
Expand All @@ -26,7 +28,7 @@ public class LanguageCombination

public class Language
{
public int Id { get; set; }
public string Id { get; set; }
public string Symbol { get; set; }
public string Name { get; set; }
public string DisplayName { get; set; }
Expand All @@ -49,7 +51,7 @@ public class Directory
public class File
{
public string Name { get; set; }
public int Id { get; set; }
public string Id { get; set; }
public bool Downloadable { get; set; }
public string Category { get; set; }
public bool Zip { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class QuoteCreateRequest
public string SourceLanguageId { get; set; }

[Display("Target language IDs"), DataSource(typeof(LanguageDataSource))]
public IEnumerable<string>? TargetLanguageIds { get; set; }
public IEnumerable<string> TargetLanguageIds { get; set; }

[Display("Specialization ID"), DataSource(typeof(SpecializationDataSource))]
public string SpecializationId { get; set; }
Expand Down

0 comments on commit c7ad50f

Please sign in to comment.