diff --git a/src/fireedge/src/client/components/Tables/ACLs/actions.js b/src/fireedge/src/client/components/Tables/ACLs/actions.js index 1e22a5cfb5..4f37ed8964 100644 --- a/src/fireedge/src/client/components/Tables/ACLs/actions.js +++ b/src/fireedge/src/client/components/Tables/ACLs/actions.js @@ -27,12 +27,15 @@ import { } from 'client/components/Tables/Enhanced/Utils' import { PATH } from 'client/apps/sunstone/routesOne' -import { Translate } from 'client/components/HOC' +import { Translate, Tr } from 'client/components/HOC' import { RESOURCE_NAMES, T, ACL_ACTIONS } from 'client/constants' +import { translateACL } from 'client/models/ACL' + const ListACLNames = ({ rows = [] }) => rows?.map?.(({ id, original }) => { - const { ID, NAME } = original + const { ID, STRING } = original + const translatedString = translateACL(STRING) return ( component="span" display="block" > - {`#${ID} ${NAME}`} + {Tr(T['acls.form.delete.rule'])} #{ID}{' '} + {Tr(T['acls.form.delete.means'])} {translatedString} ) }) diff --git a/src/fireedge/src/client/constants/translates.js b/src/fireedge/src/client/constants/translates.js index 535e8113d0..ac6a433bf6 100644 --- a/src/fireedge/src/client/constants/translates.js +++ b/src/fireedge/src/client/constants/translates.js @@ -1672,6 +1672,9 @@ module.exports = { 'acls.translate.zone.all': 'in all zones', 'acls.translate.error': 'ACL rule is NOT valid', + 'acls.form.delete.rule': 'Rule with id', + 'acls.form.delete.means': 'that means', + Identifier: 'Identifier', Rights: 'Rights', }