Skip to content

Commit

Permalink
Minor UI Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Feb 4, 2022
1 parent 0776249 commit aac8479
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions resources/js/components/game/character/character-sheet.jsx
Expand Up @@ -28,10 +28,6 @@ export default class CharacterSheet extends React.Component {
this.setState({
characterSheet: result.data.sheet,
loading: false,
}, () => {
if (result.data.sheet.timeout_until !== null) {
// this.props.openTimeOutModal(result.data.sheet.timeout_until)
}
});
}).catch((err) => {
this.setState({loading: false});
Expand Down
8 changes: 4 additions & 4 deletions resources/js/components/game/game.jsx
Expand Up @@ -616,10 +616,10 @@ export default class Game extends React.Component {
/>
: null
}
{/*{*/}
{/* this.state.openTimeOutModal ?*/}
{/* <TimeoutDialogue userId={this.props.userId} show={this.state.openTimeOutModal} timeOutFor={this.state.timeOutFor}/> : null*/}
{/*}*/}
{
this.state.openTimeOutModal ?
<TimeoutDialogue userId={this.props.userId} show={this.state.openTimeOutModal} timeOutFor={this.state.timeOutFor}/> : null
}
</>
)
}
Expand Down
4 changes: 4 additions & 0 deletions resources/js/components/game/messages/chat.jsx
Expand Up @@ -162,6 +162,10 @@ export default class Chat extends React.Component {
}

isGod(user) {
if (!user.hasOwnProperty('roles')) {
return false;
}

if (isEmpty(user.roles)) {
return false;
}
Expand Down
Expand Up @@ -28,10 +28,6 @@ export default class CharacterInfoTopSection extends React.Component {
isLoading: false,
forceNameChange: result.data.sheet.force_name_change,
}, () => {
if (result.data.sheet.timeout_until !== null) {
this.props.openTimeOutModal(result.data.sheet.timeout_until)
}

this.props.updateCharacterGold(result.data.sheet.gold);
});
}).catch((err) => {
Expand Down

0 comments on commit aac8479

Please sign in to comment.