Commit cf03f72142
Unsigned
Layout: unified · split
Hutch/Views/Repositories/ArtifactsView.swift −18
| @@ -1,11 +1,5 @@ | ||
| 1 | 1 | import SwiftUI |
| 2 | 2 | import UniformTypeIdentifiers |
| 3 | import os | |
| 4 | ||
| 5 | #if DEBUG | |
| 6 | /// Temporary: diagnosing why the upload menu swallows taps. | |
| 7 | private let artifactsLogger = Logger(subsystem: "net.cleberg.Hutch", category: "Artifacts") | |
| 8 | #endif | |
| 9 | 3 | |
| 10 | 4 | struct ArtifactsView: View { |
| 11 | 5 | let viewModel: RepositoryDetailViewModel |
| @@ -146,18 +140,6 @@ struct ArtifactsView: View { | ||
| 146 | 140 | if isOwnedByCurrentUser, viewModel.tags.isEmpty { |
| 147 | 141 | await viewModel.loadReferences() |
| 148 | 142 | } |
| 149 | #if DEBUG | |
| 150 | // Temporary: diagnosing why the upload menu swallows taps. | |
| 151 | artifactsLogger.debug( | |
| 152 | """ | |
| 153 | canManage=\(canManage, privacy: .public) \ | |
| 154 | tags=\(viewModel.tags.count, privacy: .public) \ | |
| 155 | isMutating=\(viewModel.isMutatingArtifact, privacy: .public) \ | |
| 156 | menuDisabled=\(viewModel.isMutatingArtifact || viewModel.tags.isEmpty, privacy: .public) \ | |
| 157 | error=\(viewModel.error ?? "nil", privacy: .public) | |
| 158 | """ | |
| 159 | ) | |
| 160 | #endif | |
| 161 | 143 | } |
| 162 | 144 | .overlay { |
| 163 | 145 | if viewModel.isLoadingArtifacts, viewModel.referenceArtifacts.isEmpty { |