dont show repo empty state unless loaded

This commit is contained in:
Ryan Nystrom
2017-09-03 17:32:16 -04:00
parent e476976fd3
commit 07340fdc1f
3 changed files with 5 additions and 5 deletions

View File

@@ -131,7 +131,7 @@ PrimaryViewController {
if issuesNextPage != nil {
builder.append(loadMore)
}
} else {
} else if feed.status == .idle {
builder.append(noIssuesResultsKey)
}
} else if !selection.issuesSelected {
@@ -140,7 +140,7 @@ PrimaryViewController {
if pullRequestsNextPage != nil {
builder.append(loadMore)
}
} else {
} else if feed.status == .idle {
builder.append(noPullRequestsResultsKey)
}
}
@@ -176,7 +176,7 @@ PrimaryViewController {
// MARK: SegmentedControlSectionControllerDelegate
func didChangeSelection(sectionController: SegmentedControlSectionController, model: SegmentedControlModel) {
update(dismissRefresh: false)
update(dismissRefresh: false, animated: false)
}
// MARK: SearchLoadMoreSectionControllerDelegate