mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix disabling comments
This commit is contained in:
parent
7f9b53bd1f
commit
37b99c59e1
@ -15,7 +15,7 @@ final class CommentsModel: ObservableObject {
|
|||||||
var player: PlayerModel!
|
var player: PlayerModel!
|
||||||
|
|
||||||
static var enabled: Bool {
|
static var enabled: Bool {
|
||||||
!Defaults[.commentsInstanceID].isNil
|
!Defaults[.commentsInstanceID].isNil && !Defaults[.commentsInstanceID]!.isEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
var nextPageAvailable: Bool {
|
var nextPageAvailable: Bool {
|
||||||
|
@ -59,7 +59,7 @@ struct ServicesSettings: View {
|
|||||||
|
|
||||||
private var commentsInstancePicker: some View {
|
private var commentsInstancePicker: some View {
|
||||||
Picker("Comments", selection: $commentsInstanceID) {
|
Picker("Comments", selection: $commentsInstanceID) {
|
||||||
Text("Disabled").tag(String?.none)
|
Text("Disabled").tag(Optional(""))
|
||||||
|
|
||||||
ForEach(InstancesModel.all.filter { $0.app.supportsComments }) { instance in
|
ForEach(InstancesModel.all.filter { $0.app.supportsComments }) { instance in
|
||||||
Text(instance.description).tag(Optional(instance.id))
|
Text(instance.description).tag(Optional(instance.id))
|
||||||
|
Loading…
Reference in New Issue
Block a user