Disable chat settings dropdown if chat is disabled. Closes #1875
This commit is contained in:
@@ -995,16 +995,17 @@ export default class App extends Component {
|
|||||||
>
|
>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<${ChatMenu} username=${username} isModerator=${isModerator} showAuthModal=${
|
<${!chatDisabled && ChatMenu}
|
||||||
indieAuthEnabled && this.showAuthModal
|
username=${username}
|
||||||
} onUsernameChange=${this.handleUsernameChange} onFocus=${
|
isModerator=${isModerator}
|
||||||
this.handleFormFocus
|
showAuthModal=${indieAuthEnabled && this.showAuthModal}
|
||||||
} onBlur=${
|
onUsernameChange=${this.handleUsernameChange}
|
||||||
this.handleFormBlur
|
onFocus=${this.handleFormFocus}
|
||||||
} chatDisabled=${chatDisabled} noVideoContent=${noVideoContent} handleChatPanelToggle=${
|
onBlur=${this.handleFormBlur}
|
||||||
this.handleChatPanelToggle
|
chatDisabled=${chatDisabled}
|
||||||
}>
|
noVideoContent=${noVideoContent}
|
||||||
</${ChatMenu}>
|
handleChatPanelToggle=${this.handleChatPanelToggle}
|
||||||
|
/>
|
||||||
</header>
|
</header>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1083,7 +1084,6 @@ export default class App extends Component {
|
|||||||
|
|
||||||
${chat} ${externalActionModal} ${fediverseFollowModal}
|
${chat} ${externalActionModal} ${fediverseFollowModal}
|
||||||
${notificationModal} ${authModal}
|
${notificationModal} ${authModal}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user