diff options
author | SnackpackWayne <49062420+snackpackwayne@users.noreply.github.com> | 2023-12-27 22:38:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 22:38:01 +0100 |
commit | 52cb777c9432354302b3285e141aa96632af34d5 (patch) | |
tree | 0b823b5816f040990af0ee2fc7815a2f1a063fca /src/view/com/composer/Composer.tsx | |
parent | 538c67cc332a6b909f83dd382843667dcced0fe9 (diff) | |
parent | f402f33a024ea59ea9bd2decfc0444e6836a934c (diff) | |
download | voidsky-52cb777c9432354302b3285e141aa96632af34d5.tar.zst |
Merge branch 'main' into patch-1
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 64427b837..9f60923d6 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -207,7 +207,11 @@ export const ComposePost = observer(function ComposePost({ setError('') if (richtext.text.trim().length === 0 && gallery.isEmpty && !extLink) { - setError('Did you want to say anything?') + setError(_(msg`Did you want to say anything?`)) + return + } + if (extLink?.isLoading) { + setError(_(msg`Please wait for your link card to finish loading`)) return } @@ -438,7 +442,7 @@ export const ComposePost = observer(function ComposePost({ accessibilityLabel={_(msg`Add link card`)} accessibilityHint={`Creates a card with a thumbnail. The card links to ${url}`}> <Text style={pal.text}> - <Trans>Add link card:</Trans> + <Trans>Add link card:</Trans>{' '} <Text style={[pal.link, s.ml5]}>{toShortUrl(url)}</Text> </Text> </TouchableOpacity> |