Skip to content

Commit 6de274e

Browse files
committed
Icon beside Copy All button
1 parent beed7ca commit 6de274e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

snapo-app-mac/Snap-O/NetworkInspector/NetworkInspectorRequestDetailView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private struct StreamEventsSection: View {
216216
Spacer()
217217

218218
if !events.isEmpty {
219-
Button(didCopyAll ? "Copied" : "Copy All") {
219+
Button {
220220
NetworkInspectorCopyExporter.copyStreamEventsRaw(events)
221221

222222
copyResetWorkItem?.cancel()
@@ -227,6 +227,11 @@ private struct StreamEventsSection: View {
227227
}
228228
copyResetWorkItem = workItem
229229
DispatchQueue.main.asyncAfter(deadline: .now() + 1, execute: workItem)
230+
} label: {
231+
HStack(spacing: 6) {
232+
Image(systemName: didCopyAll ? "checkmark" : "doc.on.doc")
233+
Text(didCopyAll ? "Copied" : "Copy All")
234+
}
230235
}
231236
.buttonStyle(.borderless)
232237
.font(.caption)

0 commit comments

Comments
 (0)