F OpenNebula/one#6124: Delete modal issue (#2880)

Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
(cherry picked from commit 5ae681d1ce)
This commit is contained in:
David authored and Tino Vázquez committed 2023-12-22 14:35:13 +01:00
1 parent 34e3698d5c
commit c477e1d990
2 files changed
+10 -3

No files matched your search

@@ -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 (
<Typography
@@ -41,7 +44,8 @@ const ListACLNames = ({ rows = [] }) =>
component="span"
display="block"
>
{`#${ID} ${NAME}`}
{Tr(T['acls.form.delete.rule'])} <b>#{ID}</b>{' '}
{Tr(T['acls.form.delete.means'])} <b>{translatedString}</b>
</Typography>
)
})
@@ -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',
}