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:
parent
b4e35e34a5
commit
5ae681d1ce
@ -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',
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user