From e62cd93650af563d4a10be05af09b123b683e2ff Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 23 Feb 2024 17:34:11 +0100 Subject: [PATCH] Fix composer offering to edit federation settings for an existing post --- .../features/compose/components/dropdown_icon_button.jsx | 4 +++- .../glitch/features/compose/components/federation_button.jsx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/compose/components/dropdown_icon_button.jsx b/app/javascript/flavours/glitch/features/compose/components/dropdown_icon_button.jsx index 58a9e633fb..0ced5a04ad 100644 --- a/app/javascript/flavours/glitch/features/compose/components/dropdown_icon_button.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/dropdown_icon_button.jsx @@ -7,7 +7,7 @@ import { IconButton } from 'flavours/glitch/components/icon_button'; import DropdownMenu from './dropdown_menu'; -export const DropdownIconButton = ({ value, icon, onChange, iconComponent, title, options }) => { +export const DropdownIconButton = ({ value, disabled, icon, onChange, iconComponent, title, options }) => { const containerRef = useRef(null); const [activeElement, setActiveElement] = useState(null); @@ -39,6 +39,7 @@ export const DropdownIconButton = ({ value, icon, onChange, iconComponent, title return (
{ const intl = useIntl(); + const isEditing = useAppSelector((state) => state.getIn(['compose', 'id']) !== null); const do_not_federate = useAppSelector((state) => state.getIn(['compose', 'advanced_options', 'do_not_federate'])); const dispatch = useAppDispatch(); @@ -34,6 +35,7 @@ export const FederationButton = () => { return (