Disable chat settings dropdown if chat is disabled. Closes #1875

This commit is contained in:
Gabe Kangas
2022-04-24 19:05:16 -07:00
parent 9d4c69e3bc
commit 465aeb5c38

View File

@@ -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>
`; `;
} }