File tree Expand file tree Collapse file tree 1 file changed +2
-25
lines changed
Packages/Status/Sources/Status/Editor/Components Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -65,29 +65,7 @@ struct StatusEditorMediaView: View {
65
65
. frame ( width: 150 , height: 150 )
66
66
. cornerRadius ( 8 )
67
67
if container. error != nil {
68
- VStack {
69
- Text ( " status.editor.error.upload " )
70
- Button {
71
- withAnimation {
72
- viewModel. mediasImages. removeAll ( where: { $0. id == container. id } )
73
- }
74
- } label: {
75
- VStack {
76
- Text ( " action.delete " )
77
- }
78
- }
79
- . buttonStyle ( . bordered)
80
- Button {
81
- Task {
82
- await viewModel. upload ( container: container)
83
- }
84
- } label: {
85
- VStack {
86
- Text ( " action.retry " )
87
- }
88
- }
89
- . buttonStyle ( . bordered)
90
- }
68
+ Text ( " status.editor.error.upload " )
91
69
} else if container. mediaAttachment == nil {
92
70
ProgressView ( )
93
71
}
@@ -157,8 +135,7 @@ struct StatusEditorMediaView: View {
157
135
private func makeErrorView( error: ServerError ) -> some View {
158
136
ZStack {
159
137
placeholderView
160
- Text ( " alert.error " )
161
- . foregroundColor ( . red)
138
+ Text ( " status.editor.error.upload " )
162
139
}
163
140
. alert ( " alert.error " , isPresented: $isErrorDisplayed) {
164
141
Button ( " Ok " , action: { } )
You can’t perform that action at this time.
0 commit comments