mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Disable chat settings dropdown if chat is disabled. Closes #1875
This commit is contained in:
parent
9d4c69e3bc
commit
465aeb5c38
@ -995,16 +995,17 @@ export default class App extends Component {
|
||||
>
|
||||
</h1>
|
||||
|
||||
<${ChatMenu} username=${username} isModerator=${isModerator} showAuthModal=${
|
||||
indieAuthEnabled && this.showAuthModal
|
||||
} onUsernameChange=${this.handleUsernameChange} onFocus=${
|
||||
this.handleFormFocus
|
||||
} onBlur=${
|
||||
this.handleFormBlur
|
||||
} chatDisabled=${chatDisabled} noVideoContent=${noVideoContent} handleChatPanelToggle=${
|
||||
this.handleChatPanelToggle
|
||||
}>
|
||||
</${ChatMenu}>
|
||||
<${!chatDisabled && ChatMenu}
|
||||
username=${username}
|
||||
isModerator=${isModerator}
|
||||
showAuthModal=${indieAuthEnabled && this.showAuthModal}
|
||||
onUsernameChange=${this.handleUsernameChange}
|
||||
onFocus=${this.handleFormFocus}
|
||||
onBlur=${this.handleFormBlur}
|
||||
chatDisabled=${chatDisabled}
|
||||
noVideoContent=${noVideoContent}
|
||||
handleChatPanelToggle=${this.handleChatPanelToggle}
|
||||
/>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
@ -1083,7 +1084,6 @@ export default class App extends Component {
|
||||
|
||||
${chat} ${externalActionModal} ${fediverseFollowModal}
|
||||
${notificationModal} ${authModal}
|
||||
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user