From f279199f325d67565376f9813fae4e95930e046d Mon Sep 17 00:00:00 2001 From: Karel Hala Date: Thu, 12 Oct 2023 13:22:44 +0200 Subject: [PATCH] Resource definitons applies to cost and inventory --- locales/translation-template.json | 6 +++--- src/Messages.js | 8 ++++---- src/locales/data.json | 4 ++-- src/locales/translations.json | 4 ++-- src/smart-components/role/role-permissions.js | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/locales/translation-template.json b/locales/translation-template.json index 3f86df838..bbbdb3835 100644 --- a/locales/translation-template.json +++ b/locales/translation-template.json @@ -974,9 +974,9 @@ "defaultMessage": "Resource definitions", "description": "Resource definitions label" }, - "resourceDefinitionsApplyToCost": { - "defaultMessage": "Resource definitions only apply to Cost Management permissions", - "description": "Resource definitions only apply to Cost Management permissions message" + "resourceDefinitionsApplyToCostAndInventory": { + "defaultMessage": "Resource definitions only apply to Cost Management and Inventory permissions", + "description": "Resource definitions only apply to Cost Management and Inventory permissions message" }, "resourceType": { "defaultMessage": "Resource type", diff --git a/src/Messages.js b/src/Messages.js index a3d02e2bf..e7b454c96 100644 --- a/src/Messages.js +++ b/src/Messages.js @@ -1438,10 +1438,10 @@ export default defineMessages({ description: 'Last commit label', defaultMessage: 'Last commit', }, - resourceDefinitionsApplyToCost: { - id: 'resourceDefinitionsApplyToCost', - description: 'Resource definitions only apply to Cost Management permissions message', - defaultMessage: 'Resource definitions only apply to Cost Management permissions', + resourceDefinitionsApplyToCostAndInventory: { + id: 'resourceDefinitionsApplyToCostAndInventory', + description: 'Resource definitions only apply to Cost Management and Inventory permissions message', + defaultMessage: 'Resource definitions only apply to Cost Management and Inventory permissions', }, removePermissionQuestion: { id: 'removePermissionQuestion', diff --git a/src/locales/data.json b/src/locales/data.json index 0ada639a0..3a19877b1 100644 --- a/src/locales/data.json +++ b/src/locales/data.json @@ -244,7 +244,7 @@ "resource": "Resource", "resourceDefinition": "Resource definition", "resourceDefinitions": "Resource definitions", - "resourceDefinitionsApplyToCost": "Resource definitions only apply to Cost Management permissions", + "resourceDefinitionsApplyToCostAndInventory": "Resource definitions only apply to Cost Management and Inventory permissions", "resourceType": "Resource type", "resources": "Resources", "resourcesAvailable": "Resources available for the permission", @@ -310,4 +310,4 @@ "yourPermissions": "Your {name} permissions", "yourRoles": "Your {name} roles" } -} \ No newline at end of file +} diff --git a/src/locales/translations.json b/src/locales/translations.json index b9595d2bc..d8024b03c 100644 --- a/src/locales/translations.json +++ b/src/locales/translations.json @@ -243,7 +243,7 @@ "resource": "Resource", "resourceDefinition": "Resource definition", "resourceDefinitions": "Resource definitions", - "resourceDefinitionsApplyToCost": "Resource definitions only apply to Cost Management permissions", + "resourceDefinitionsApplyToCostAndInventory": "Resource definitions only apply to Cost Management and Inventory permissions", "resourceType": "Resource type", "resources": "Resources", "resourcesAvailable": "Resources available for the permission", @@ -308,4 +308,4 @@ "yes": "Yes", "yourPermissions": "Your {name} permissions", "yourRoles": "Your {name} roles" -} \ No newline at end of file +} diff --git a/src/smart-components/role/role-permissions.js b/src/smart-components/role/role-permissions.js index fd08d5854..eadb20f2d 100644 --- a/src/smart-components/role/role-permissions.js +++ b/src/smart-components/role/role-permissions.js @@ -75,8 +75,8 @@ const Permissions = ({ cantAddPermissions }) => { title: intl.formatMessage(messages.resourceDefinitions), transforms: [ info({ - popover: intl.formatMessage(messages.resourceDefinitionsApplyToCost), - ariaLabel: intl.formatMessage(messages.resourceDefinitionsApplyToCost), + popover: intl.formatMessage(messages.resourceDefinitionsApplyToCostAndInventory), + ariaLabel: intl.formatMessage(messages.resourceDefinitionsApplyToCostAndInventory), }), ], },