Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3217c3f66e |
@@ -1,5 +1,6 @@
|
|||||||
import Observation
|
import Observation
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
import UIKit
|
||||||
|
|
||||||
struct SybilSidebarView: View {
|
struct SybilSidebarView: View {
|
||||||
@Bindable var viewModel: SybilViewModel
|
@Bindable var viewModel: SybilViewModel
|
||||||
@@ -169,7 +170,7 @@ struct SybilSidebarItemList: View {
|
|||||||
Label(item.starred ? "Unstar" : "Star", systemImage: item.starred ? "star.slash" : "star")
|
Label(item.starred ? "Unstar" : "Star", systemImage: item.starred ? "star.slash" : "star")
|
||||||
}
|
}
|
||||||
|
|
||||||
if item.kind == .chat {
|
if case let .chat(chatID) = item.selection {
|
||||||
Button {
|
Button {
|
||||||
forkChat(item)
|
forkChat(item)
|
||||||
} label: {
|
} label: {
|
||||||
@@ -183,6 +184,12 @@ struct SybilSidebarItemList: View {
|
|||||||
} label: {
|
} label: {
|
||||||
Label("Rename", systemImage: "pencil")
|
Label("Rename", systemImage: "pencil")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
UIPasteboard.general.string = chatID
|
||||||
|
} label: {
|
||||||
|
Label("Copy Session ID", systemImage: "doc.on.doc")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button(role: .destructive) {
|
Button(role: .destructive) {
|
||||||
|
|||||||
Reference in New Issue
Block a user