Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Fix code retry button and always enable options #2516

Merged
merged 1 commit into from
Dec 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Classes/Repository/RepositoryCodeBlobViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ final class RepositoryCodeBlobViewController: UIViewController, EmptyViewDelegat
let barButtonItem = UIBarButtonItem(
image: UIImage(named: "bullets-hollow"),
target: self,
action: #selector(RepositoryCodeBlobViewController.onShare(sender:)))
barButtonItem.isEnabled = false

action: #selector(RepositoryCodeBlobViewController.onShare(sender:))
)
return barButtonItem
}()

Expand Down Expand Up @@ -68,8 +67,8 @@ final class RepositoryCodeBlobViewController: UIViewController, EmptyViewDelegat
emptyView.isHidden = true
emptyView.delegate = self
emptyView.button.isHidden = false
view.addSubview(emptyView)
view.addSubview(codeView)
view.addSubview(emptyView)

codeView.refreshControl = feedRefresh.refreshControl
feedRefresh.refreshControl.addTarget(self, action: #selector(onRefresh), for: .valueChanged)
Expand Down Expand Up @@ -101,7 +100,6 @@ final class RepositoryCodeBlobViewController: UIViewController, EmptyViewDelegat

func didFetchPayload(_ payload: Any) {
sharingPayload = payload
moreOptionsItem.isEnabled = true
}

@objc func onRefresh() {
Expand Down