Skip to content

Commit a540fa7

Browse files
committed
fix: 反馈显示不全问题
1 parent 8c476d9 commit a540fa7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Lavcode.Uwp/Controls/Issue/IssueSource.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Octokit;
66
using System;
77
using System.Collections.Generic;
8-
using System.Linq;
98
using System.Threading;
109
using System.Threading.Tasks;
1110

@@ -14,9 +13,11 @@ namespace Lavcode.Uwp.Modules.Feedback
1413
public class IssueSource : IIncrementalSource<Issue>
1514
{
1615
private readonly string[] _labels;
17-
public IssueSource(string[] labels)
16+
private readonly ItemStateFilter _state;
17+
public IssueSource(string[] labels, ItemStateFilter state)
1818
{
1919
_labels = labels;
20+
_state = state;
2021
}
2122

2223
private readonly GitHubClient _client = GitHubHelper.GetBaseClient(RepositoryConstant.Repos);
@@ -28,7 +29,7 @@ public async Task<IEnumerable<Issue>> GetPagedItemsAsync(int pageIndex, int page
2829
{
2930
SortDirection = SortDirection.Descending,
3031
SortProperty = IssueSort.Updated,
31-
State = ItemStateFilter.Open,
32+
State = _state,
3233
};
3334
if (_labels != null)
3435
{

src/Lavcode.Uwp/Modules/Feedback/FeedbackViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public async Task Init()
3737
await TaskExtend.SleepAsync(100);
3838
try
3939
{
40-
Feedbacks = new IncrementalLoadingCollection<IssueSource, Issue>(new IssueSource(new string[] { RepositoryConstant.FeedbackIssueTag }));
40+
Feedbacks = new IncrementalLoadingCollection<IssueSource, Issue>(new IssueSource(new string[] { RepositoryConstant.FeedbackIssueTag }, ItemStateFilter.All));
4141
Feedbacks.OnEndLoading += () =>
4242
{
4343
LoadingHelper.Hide();

0 commit comments

Comments
 (0)