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 @@ -106,6 +106,7 @@ +changeThreadSettingsAction: () => Promise, +onSubmit: (event: SyntheticEvent) => void, +mainContent: ?React.Node, + +buttons: ?React.Node, }; class ThreadSettingsModal extends React.PureComponent { constructor(props: Props) { @@ -123,33 +124,6 @@ render() { const { threadInfo } = this.props; - const inputDisabled = - this.props.changeInProgress || - !this.props.hasPermissionForTab(threadInfo, this.props.currentTabType); - - let buttons = null; - if (this.props.currentTabType === 'delete') { - buttons = ( - - ); - } else { - buttons = ( - - ); - } const tabs = [ {this.props.mainContent}
- {buttons} + {this.props.buttons}
{this.props.errorMessage}
@@ -476,6 +450,26 @@ ); } + let buttons; + if (currentTabType === 'delete') { + buttons = ( + + ); + } else { + buttons = ( + + ); + } + return ( ); },