0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

refactor(console): apply new layout for org settings (#4805)

This commit is contained in:
Gao Sun 2023-11-02 14:46:22 +08:00 committed by GitHub
parent d0da261914
commit 1c79cde885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 125 additions and 103 deletions

View file

@ -19,7 +19,7 @@ import useTheme from '@/hooks/use-theme';
import { trySubmitSafe } from '@/utils/form';
import { steps } from '../const';
import styles from '../index.module.scss';
import * as styles from '../index.module.scss';
type OrganizationForm = {
name: string;

View file

@ -5,20 +5,20 @@ import { useTranslation } from 'react-i18next';
import useSWR, { useSWRConfig } from 'swr';
import ActionsButton from '@/components/ActionsButton';
import FormField from '@/ds-components/FormField';
import FormCard from '@/components/FormCard';
import Tag from '@/ds-components/Tag';
import useApi, { type RequestError } from '@/hooks/use-api';
import { buildUrl } from '@/utils/url';
import PermissionModal from '../PermissionModal';
import { swrKey } from '../RolesField';
import { swrKey } from '../RolesCard';
import TemplateTable, { pageSize } from '../TemplateTable';
/**
* Renders the permissions field that allows users to add, edit, and delete organization
* Renders the permissions card that allows users to add, edit, and delete organization
* permissions.
*/
function PermissionsField() {
function PermissionsCard() {
const [page, setPage] = useState(1);
const {
data: response,
@ -45,7 +45,10 @@ function PermissionsField() {
const isLoading = !response && !error;
return (
<FormField title="organizations.organization_permission_other">
<FormCard
title="organizations.organization_permission_other"
description="organizations.organization_permission_description"
>
<PermissionModal
isOpen={isModalOpen}
editData={editData}
@ -98,8 +101,8 @@ function PermissionsField() {
setIsModalOpen(true);
}}
/>
</FormField>
</FormCard>
);
}
export default PermissionsField;
export default PermissionsCard;

View file

@ -5,8 +5,8 @@ import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
import ActionsButton from '@/components/ActionsButton';
import FormCard from '@/components/FormCard';
import { RoleOption } from '@/components/OrganizationRolesSelect';
import FormField from '@/ds-components/FormField';
import Tag from '@/ds-components/Tag';
import useApi, { type RequestError } from '@/hooks/use-api';
import { buildUrl } from '@/utils/url';
@ -19,10 +19,10 @@ import * as styles from './index.module.scss';
export const swrKey = 'api/organization-roles';
/**
* Renders the roles field that allows users to add, edit, and delete organization
* Renders the roles card that allows users to add, edit, and delete organization
* roles.
*/
function RolesField() {
function RolesCard() {
const [page, setPage] = useState(1);
const {
data: response,
@ -44,7 +44,10 @@ function RolesField() {
const isLoading = !response && !error;
return (
<FormField title="organizations.organization_role_other">
<FormCard
title="organizations.organization_role_other"
description="organizations.organization_role_description"
>
<RoleModal
isOpen={isModalOpen}
editData={editData}
@ -108,8 +111,8 @@ function RolesField() {
setIsModalOpen(true);
}}
/>
</FormField>
</FormCard>
);
}
export default RolesField;
export default RolesCard;

View file

@ -0,0 +1,9 @@
@use '@/scss/underscore' as _;
.content {
padding: _.unit(4) 0;
> div + div {
margin-top: _.unit(4);
}
}

View file

@ -1,16 +1,13 @@
import FormCard from '@/components/FormCard';
import PermissionsCard from '../PermissionsCard';
import RolesCard from '../RolesCard';
import PermissionsField from '../PermissionsField';
import RolesField from '../RolesField';
import * as styles from './index.module.scss';
export default function Settings() {
return (
<FormCard
title="organizations.access_control"
description="organizations.access_control_description"
>
<PermissionsField />
<RolesField />
</FormCard>
<div className={styles.content}>
<PermissionsCard />
<RolesCard />
</div>
);
}

View file

@ -4,10 +4,6 @@
margin-top: _.unit(3);
}
.table {
margin-top: _.unit(3);
}
.spinner {
margin: _.unit(2) 0;
}

View file

@ -53,7 +53,6 @@ function TemplateTable<
hasBorder
placeholder={<EmptyDataPlaceholder />}
isLoading={isLoading}
className={styles.table}
rowGroups={[
{
key: 'data',

View file

@ -1,5 +1,5 @@
@use '@/scss/underscore' as _;
.tabs {
margin: _.unit(4) 0;
margin-top: _.unit(4);
}

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -8,11 +8,10 @@ const organization = {
create_organization: 'Create organization',
organization_name_placeholder: 'My organization',
organization_description_placeholder: 'A brief description of the organization.',
access_control: 'Access control',
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
organization_permission: 'Organization permission',
organization_permission_other: 'Organization permissions',
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
create_permission_placeholder: 'Read appointment history.',
@ -20,6 +19,8 @@ const organization = {
permission_other: 'Permissions',
organization_role: 'Organization role',
organization_role_other: 'Organization roles',
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
role: 'Role',

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */

View file

@ -17,15 +17,13 @@ const organizations = {
/** UNTRANSLATED */
organization_description_placeholder: 'A brief description of the organization.',
/** UNTRANSLATED */
access_control: 'Access control',
/** UNTRANSLATED */
access_control_description:
'Authorization in a multi-tenancy applications is often designed to make sure that tenant isolation is maintained throughout an application and that tenants can access only their own resources.',
/** UNTRANSLATED */
organization_permission: 'Organization permission',
/** UNTRANSLATED */
organization_permission_other: 'Organization permissions',
/** UNTRANSLATED */
organization_permission_description:
'Organization permission refers to the authorization to access a resource in the context of organization. An organization permission should be represented as a meaningful string, also serving as the name and unique identifier.',
/** UNTRANSLATED */
organization_permission_delete_confirm:
'If this permission is deleted, all organization roles including this permission will lose this permission, and users who had this permission will lose the access granted by it.',
/** UNTRANSLATED */
@ -39,6 +37,9 @@ const organizations = {
/** UNTRANSLATED */
organization_role_other: 'Organization roles',
/** UNTRANSLATED */
organization_role_description:
'Organization role is a grouping of permissions that can be assigned to users. The permissions must come from the predefined organization permissions.',
/** UNTRANSLATED */
organization_role_delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',
/** UNTRANSLATED */