about summary refs log tree commit diff
path: root/src/view/com/composer/Composer.tsx
diff options
context:
space:
mode:
authorSnackpackWayne <49062420+snackpackwayne@users.noreply.github.com>2023-12-27 22:38:01 +0100
committerGitHub <noreply@github.com>2023-12-27 22:38:01 +0100
commit52cb777c9432354302b3285e141aa96632af34d5 (patch)
tree0b823b5816f040990af0ee2fc7815a2f1a063fca /src/view/com/composer/Composer.tsx
parent538c67cc332a6b909f83dd382843667dcced0fe9 (diff)
parentf402f33a024ea59ea9bd2decfc0444e6836a934c (diff)
downloadvoidsky-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.tsx8
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>