diff options
| author | Christian Cleberg <[email protected]> | 2026-04-13 09:57:23 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-13 09:57:23 -0500 |
| commit | 0e461a382257979037e8927e5f6b468635b0a7fe (patch) | |
| tree | 0aa3a19f6f8f966b0e90f4874ed54359a7898107 /Hutch/Views/Builds/BuildTaskLogView.swift | |
| parent | ee9f2904aa319231b7047fca3cb069f0c07019cd (diff) | |
| download | hutch-0e461a382257979037e8927e5f6b468635b0a7fe.tar.gz hutch-0e461a382257979037e8927e5f6b468635b0a7fe.tar.bz2 hutch-0e461a382257979037e8927e5f6b468635b0a7fe.zip | |
feat: add power user actions
Implements: https://todo.sr.ht/~ccleberg/hutch/52
Implements: https://todo.sr.ht/~ccleberg/hutch/53
Implements: https://todo.sr.ht/~ccleberg/hutch/54
Diffstat (limited to 'Hutch/Views/Builds/BuildTaskLogView.swift')
| -rw-r--r-- | Hutch/Views/Builds/BuildTaskLogView.swift | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Hutch/Views/Builds/BuildTaskLogView.swift b/Hutch/Views/Builds/BuildTaskLogView.swift index fda69f6..3011e34 100644 --- a/Hutch/Views/Builds/BuildTaskLogView.swift +++ b/Hutch/Views/Builds/BuildTaskLogView.swift @@ -1,7 +1,8 @@ import SwiftUI -import UIKit struct BuildTaskLogView: View { + @Environment(AppState.self) private var appState + let taskName: String let viewModel: BuildDetailViewModel @@ -32,7 +33,7 @@ struct BuildTaskLogView: View { } ToolbarItem(placement: .topBarTrailing) { Button { - UIPasteboard.general.string = logText + appState.copyToPasteboard(logText, label: "build log") } label: { Image(systemName: "doc.on.doc") } |
