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 (