diff --git a/web/modals/threads/thread-settings-modal.react.js b/web/modals/threads/thread-settings-modal.react.js --- a/web/modals/threads/thread-settings-modal.react.js +++ b/web/modals/threads/thread-settings-modal.react.js @@ -105,6 +105,7 @@ +onDelete: (event: SyntheticEvent) => void, +changeThreadSettingsAction: () => Promise, +onSubmit: (event: SyntheticEvent) => void, + +buttons: ?React.Node, }; class ThreadSettingsModal extends React.PureComponent { constructor(props: Props) { @@ -159,30 +160,6 @@ ); } - let buttons = null; - if (this.props.currentTabType === 'delete') { - buttons = ( - - ); - } else { - buttons = ( - - ); - } - const tabs = [ {mainContent}
- {buttons} + {this.props.buttons}
{this.props.errorMessage}
@@ -464,6 +441,29 @@ ); } + const inputDisabled = + changeInProgress || !hasPermissionForTab(threadInfo, currentTabType); + + let buttons; + if (currentTabType === 'delete') { + buttons = ( + + ); + } else { + buttons = ( + + ); + } + return ( ); },