mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-26 18:48:15 +02:00
fix bad code (#3972)
This commit is contained in:
parent
f5a068e382
commit
b9d0fd7fe0
@ -126,9 +126,9 @@ const MarkdownEditorInput = (props: Props): ReactElement => {
|
||||
userId,
|
||||
roles: role,
|
||||
schemeAdmin: newRole === MemberRole.Admin,
|
||||
schemeEditor: newRole === MemberRole.Admin || MemberRole.Editor,
|
||||
schemeCommenter: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter,
|
||||
schemeViewer: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
|
||||
schemeEditor: newRole === MemberRole.Admin || newRole === MemberRole.Editor,
|
||||
schemeCommenter: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter,
|
||||
schemeViewer: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
|
||||
} as BoardMember
|
||||
|
||||
setConfirmAddUser(null)
|
||||
|
@ -116,9 +116,9 @@ const MultiPerson = (props: PropertyProps): JSX.Element => {
|
||||
userId,
|
||||
roles: role,
|
||||
schemeAdmin: newRole === MemberRole.Admin,
|
||||
schemeEditor: newRole === MemberRole.Admin || MemberRole.Editor,
|
||||
schemeCommenter: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter,
|
||||
schemeViewer: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
|
||||
schemeEditor: newRole === MemberRole.Admin || newRole === MemberRole.Editor,
|
||||
schemeCommenter: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter,
|
||||
schemeViewer: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
|
||||
} as BoardMember
|
||||
|
||||
setConfirmAddUser(null)
|
||||
|
@ -100,9 +100,9 @@ const Person = (props: PropertyProps): JSX.Element => {
|
||||
userId,
|
||||
roles: role,
|
||||
schemeAdmin: newRole === MemberRole.Admin,
|
||||
schemeEditor: newRole === MemberRole.Admin || MemberRole.Editor,
|
||||
schemeCommenter: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter,
|
||||
schemeViewer: newRole === MemberRole.Admin || MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
|
||||
schemeEditor: newRole === MemberRole.Admin || newRole === MemberRole.Editor,
|
||||
schemeCommenter: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter,
|
||||
schemeViewer: newRole === MemberRole.Admin || newRole === MemberRole.Editor || newRole === MemberRole.Commenter || newRole === MemberRole.Viewer,
|
||||
} as BoardMember
|
||||
|
||||
setConfirmAddUser(null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user