From 802ade62ce9fba9a954c71530d85fb44f4a007ce Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 5 Jun 2025 10:49:26 +0200 Subject: [PATCH] [Glitch] Fix account note textarea being interactable before the relationship gets fetched Port 375add0c83651771b08c5c450353f1b7f313bb04 to glitch-soc Signed-off-by: Claire --- .../account/components/account_note.jsx | 30 ++++++++++++------- .../flavours/glitch/styles/components.scss | 14 +++++++++ 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/app/javascript/flavours/glitch/features/account/components/account_note.jsx b/app/javascript/flavours/glitch/features/account/components/account_note.jsx index df7312eafc..1317df4c44 100644 --- a/app/javascript/flavours/glitch/features/account/components/account_note.jsx +++ b/app/javascript/flavours/glitch/features/account/components/account_note.jsx @@ -8,6 +8,8 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; +import { LoadingIndicator } from '@/flavours/glitch/components/loading_indicator'; + const messages = defineMessages({ placeholder: { id: 'account_note.placeholder', defaultMessage: 'Click to add a note' }, }); @@ -153,17 +155,23 @@ class AccountNote extends ImmutablePureComponent { -