1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

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

Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
This commit is contained in:
David 2023-12-22 14:34:42 +01:00 committed by GitHub
parent b4e35e34a5
commit 5ae681d1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -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>
)
})

View File

@ -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',
}