mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
fix regression in sorting
This commit is contained in:
parent
1c784d0605
commit
7e79d65390
2 changed files with 3 additions and 5 deletions
|
@ -68,12 +68,10 @@ export default class Role extends React.Component<RoleProps, RoleState> {
|
|||
active={this.props.active}
|
||||
disabled={this.props.disabled}
|
||||
onClick={this.onToggle}
|
||||
onMouseOver={this.onMouseOver}
|
||||
onMouseOut={this.onMouseOut}
|
||||
onTouchStart={this.onMouseOver}
|
||||
onTouchEnd={this.onMouseOut}
|
||||
colors={roleColors}
|
||||
// title={(this.props.disabled) ? 'This role is disabled for safety.' : null}
|
||||
title={(this.props.disabled) ? 'This role has unsafe permissions.' : null}
|
||||
>
|
||||
{this.props.role.name}
|
||||
{ (this.props.disabled && this.state.hovering) && <Tooltip>This role has unsafe permissions.</Tooltip> }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue