refer to it as a gif in the composer

This commit is contained in:
Samuel Newman
2026-01-30 17:25:17 +02:00
parent b3aa9682d9
commit 812ff4d154
+18
View File
@@ -2274,22 +2274,40 @@ function VideoUploadToolbar({state}: {state: VideoState}) {
let text = '' let text = ''
const isGif = state.video?.mimeType === 'image/gif'
switch (state.status) { switch (state.status) {
case 'compressing': case 'compressing':
if (isGif) {
text = _(msg`Compressing GIF...`)
} else {
text = _(msg`Compressing video...`) text = _(msg`Compressing video...`)
}
break break
case 'uploading': case 'uploading':
if (isGif) {
text = _(msg`Uploading GIF...`)
} else {
text = _(msg`Uploading video...`) text = _(msg`Uploading video...`)
}
break break
case 'processing': case 'processing':
if (isGif) {
text = _(msg`Processing GIF...`)
} else {
text = _(msg`Processing video...`) text = _(msg`Processing video...`)
}
break break
case 'error': case 'error':
text = _(msg`Error`) text = _(msg`Error`)
wheelProgress = 100 wheelProgress = 100
break break
case 'done': case 'done':
if (isGif) {
text = _(msg`GIF uploaded`)
} else {
text = _(msg`Video uploaded`) text = _(msg`Video uploaded`)
}
break break
} }