fix: updated naming convention in action & object label (#12935)
Fixed the naming convention at object-level permissions. Removed the _Records on_. Only [Action] + [Object Name] (e.g. "See Companies") will be shown  Closes #12906 Co-authored-by: Jagss24 <btwitsjagannat12@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
committed by
GitHub
parent
5e18438f4c
commit
fb9b61c8c4
@ -85,7 +85,7 @@ export const SettingsRolePermissionsObjectLevelObjectFormObjectLevel = ({
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
key: 'canReadObjectRecords',
|
key: 'canReadObjectRecords',
|
||||||
label: t`See Records on ${objectLabel}`,
|
label: t`See ${objectLabel}`,
|
||||||
value: settingsDraftRoleObjectPermissions.canReadObjectRecords,
|
value: settingsDraftRoleObjectPermissions.canReadObjectRecords,
|
||||||
setValue: (value: boolean | null) => {
|
setValue: (value: boolean | null) => {
|
||||||
updateObjectPermission('canReadObjectRecords', value);
|
updateObjectPermission('canReadObjectRecords', value);
|
||||||
@ -93,7 +93,7 @@ export const SettingsRolePermissionsObjectLevelObjectFormObjectLevel = ({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'canUpdateObjectRecords',
|
key: 'canUpdateObjectRecords',
|
||||||
label: t`Edit Records on ${objectLabel}`,
|
label: t`Edit ${objectLabel}`,
|
||||||
value: settingsDraftRoleObjectPermissions.canUpdateObjectRecords,
|
value: settingsDraftRoleObjectPermissions.canUpdateObjectRecords,
|
||||||
setValue: (value: boolean | null) => {
|
setValue: (value: boolean | null) => {
|
||||||
updateObjectPermission('canUpdateObjectRecords', value);
|
updateObjectPermission('canUpdateObjectRecords', value);
|
||||||
@ -101,7 +101,7 @@ export const SettingsRolePermissionsObjectLevelObjectFormObjectLevel = ({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'canSoftDeleteObjectRecords',
|
key: 'canSoftDeleteObjectRecords',
|
||||||
label: t`Delete Records on ${objectLabel}`,
|
label: t`Delete ${objectLabel}`,
|
||||||
value: settingsDraftRoleObjectPermissions.canSoftDeleteObjectRecords,
|
value: settingsDraftRoleObjectPermissions.canSoftDeleteObjectRecords,
|
||||||
setValue: (value: boolean | null) => {
|
setValue: (value: boolean | null) => {
|
||||||
updateObjectPermission('canSoftDeleteObjectRecords', value);
|
updateObjectPermission('canSoftDeleteObjectRecords', value);
|
||||||
@ -109,7 +109,7 @@ export const SettingsRolePermissionsObjectLevelObjectFormObjectLevel = ({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'canDestroyObjectRecords',
|
key: 'canDestroyObjectRecords',
|
||||||
label: t`Destroy Records on ${objectLabel}`,
|
label: t`Destroy ${objectLabel}`,
|
||||||
value: settingsDraftRoleObjectPermissions.canDestroyObjectRecords,
|
value: settingsDraftRoleObjectPermissions.canDestroyObjectRecords,
|
||||||
setValue: (value: boolean | null) => {
|
setValue: (value: boolean | null) => {
|
||||||
updateObjectPermission('canDestroyObjectRecords', value);
|
updateObjectPermission('canDestroyObjectRecords', value);
|
||||||
|
|||||||
Reference in New Issue
Block a user