mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
(cherry picked from commit d95d100d8c
)
Co-authored-by: Christopher Speller <crspeller@gmail.com>
This commit is contained in:
parent
4de39798ab
commit
211a527d4d
@ -47,20 +47,23 @@ const TeamPermissionsRow = (): JSX.Element => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let currentRoleName = intl.formatMessage({id: 'BoardMember.schemeNone', defaultMessage: 'None'})
|
let currentRoleName = intl.formatMessage({id: 'BoardMember.schemeAdmin', defaultMessage: 'Admin'})
|
||||||
if (board.type === BoardTypeOpen && board.minimumRole === MemberRole.Admin) {
|
if (board.type === BoardTypeOpen) {
|
||||||
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeAdmin', defaultMessage: 'Admin'})
|
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeEditor', defaultMessage: 'Editor'})
|
||||||
} else if (board.type === BoardTypeOpen && board.minimumRole === MemberRole.Editor) {
|
if (board.minimumRole === MemberRole.Editor) {
|
||||||
if (board.isTemplate) {
|
if (board.isTemplate) {
|
||||||
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeViewer', defaultMessage: 'Viewer'})
|
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeViewer', defaultMessage: 'Viewer'})
|
||||||
} else {
|
} else {
|
||||||
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeEditor', defaultMessage: 'Editor'})
|
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeEditor', defaultMessage: 'Editor'})
|
||||||
}
|
}
|
||||||
} else if (board.type === BoardTypeOpen && board.minimumRole === MemberRole.Commenter) {
|
} else if (board.minimumRole === MemberRole.Commenter) {
|
||||||
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeCommenter', defaultMessage: 'Commenter'})
|
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeCommenter', defaultMessage: 'Commenter'})
|
||||||
} else if (board.type === BoardTypeOpen && board.minimumRole === MemberRole.Viewer) {
|
} else if (board.minimumRole === MemberRole.Viewer) {
|
||||||
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeViewer', defaultMessage: 'Viewer'})
|
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeViewer', defaultMessage: 'Viewer'})
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
currentRoleName = intl.formatMessage({id: 'BoardMember.schemeNone', defaultMessage: 'None'})
|
||||||
|
}
|
||||||
|
|
||||||
const confirmationDialog = (
|
const confirmationDialog = (
|
||||||
<ConfirmationDialogBox
|
<ConfirmationDialogBox
|
||||||
|
Loading…
Reference in New Issue
Block a user