Allow to contribute empty recordings
This commit is contained in:
@@ -306,9 +306,6 @@
|
|||||||
</rightBarButtonItems>
|
</rightBarButtonItems>
|
||||||
</navigationItem>
|
</navigationItem>
|
||||||
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
|
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
|
||||||
<connections>
|
|
||||||
<outlet property="shareButton" destination="UkE-Wi-JjW" id="9f1-WG-k0N"/>
|
|
||||||
</connections>
|
|
||||||
</tableViewController>
|
</tableViewController>
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="lan-I9-b0a" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
<placeholder placeholderIdentifier="IBFirstResponder" id="lan-I9-b0a" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||||
</objects>
|
</objects>
|
||||||
|
|||||||
@@ -5,14 +5,11 @@ class TVCRecordingDetails: UITableViewController, EditActionsRemove {
|
|||||||
var noResults: Bool = false
|
var noResults: Bool = false
|
||||||
private lazy var isLongRecording: Bool = record.isLongTerm
|
private lazy var isLongRecording: Bool = record.isLongTerm
|
||||||
|
|
||||||
@IBOutlet private var shareButton: UIBarButtonItem!
|
|
||||||
|
|
||||||
private var showRaw: Bool = false
|
private var showRaw: Bool = false
|
||||||
/// Sorted by `ts` in ascending order (oldest first)
|
/// Sorted by `ts` in ascending order (oldest first)
|
||||||
private lazy var dataSourceRaw: [DomainTsPair] = {
|
private lazy var dataSourceRaw: [DomainTsPair] = {
|
||||||
let list = RecordingsDB.details(record)
|
let list = RecordingsDB.details(record)
|
||||||
noResults = list.count == 0
|
noResults = list.count == 0
|
||||||
shareButton.isEnabled = !noResults
|
|
||||||
return list
|
return list
|
||||||
}()
|
}()
|
||||||
/// Sorted by `count` (descending), then alphabetically
|
/// Sorted by `count` (descending), then alphabetically
|
||||||
@@ -115,7 +112,6 @@ class TVCRecordingDetails: UITableViewController, EditActionsRemove {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
noResults = dataSourceRaw.count == 0
|
noResults = dataSourceRaw.count == 0
|
||||||
shareButton.isEnabled = !noResults
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user