Skip to content

Commit dc4dae6

Browse files
authored
Added formatting to required permssions in permissionTooltipHelper (#2447)
1 parent 2f57801 commit dc4dae6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

portal-ui/src/common/SecureComponent/permissions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,13 @@ export const S3_ALL_RESOURCES = "arn:aws:s3:::*";
436436
export const CONSOLE_UI_RESOURCE = "console-ui";
437437

438438
export const permissionTooltipHelper = (scopes: string[], name: string) => {
439+
let niceScopes = scopes.join(", ").toString();
440+
439441
return (
440442
"You require additional permissions in order to " +
441443
name +
442444
". Please ask your MinIO administrator to grant you " +
443-
scopes +
445+
niceScopes +
444446
" permission" +
445447
(scopes.length > 1 ? "s" : "") +
446448
" in order to " +

0 commit comments

Comments
 (0)