mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 16:45:27 +00:00
Merge branch 'main' into iOS-18
This commit is contained in:
commit
efab56d5e5
2 changed files with 499 additions and 63 deletions
|
@ -37,6 +37,11 @@ struct AddRemoteTimelineView: View {
|
|||
.foregroundColor(.green)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
}
|
||||
if !instanceName.isEmpty && instance == nil {
|
||||
Label("timeline.\(instanceName)-not-valid", systemImage: "xmark.seal.fill")
|
||||
.foregroundColor(.red)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
}
|
||||
Button {
|
||||
guard instance != nil else { return }
|
||||
context.insert(LocalTimeline(instance: instanceName))
|
||||
|
@ -45,6 +50,7 @@ struct AddRemoteTimelineView: View {
|
|||
Text("timeline.add.action.add")
|
||||
}
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
.disabled(instance == nil)
|
||||
|
||||
instancesListView
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue