This commit is contained in:
Thomas Ricouard 2024-07-03 14:17:35 +02:00
parent b98a90ced6
commit 6f3f8e9dd0

View File

@ -106,6 +106,11 @@ extension StatusEditor {
}
}
}
.alert("alert.error", isPresented: $isErrorDisplayed) {
Button("Ok", action: {})
} message: {
Text(container.error?.localizedDescription ?? "")
}
.overlay(alignment: .bottomTrailing) {
makeAltMarker(container: container)
}
@ -194,11 +199,6 @@ extension StatusEditor {
placeholderView
Text("status.editor.error.upload")
}
.alert("alert.error", isPresented: $isErrorDisplayed) {
Button("Ok", action: {})
} message: {
Text(error.error ?? "")
}
}
private func makeAltMarker(container: MediaContainer) -> some View {