Computation of permissions seems to somehow work.
This commit is contained in:
parent
e7bdfb7745
commit
5df444f641
12 changed files with 286 additions and 133 deletions
|
@ -8,6 +8,7 @@ import i18n from '../lib/i18n';
|
|||
import { Section } from '../lib/page';
|
||||
import CUD from './CUD';
|
||||
import List from './List';
|
||||
import Share from '../shares/Share';
|
||||
|
||||
const getStructure = t => ({
|
||||
'': {
|
||||
|
@ -27,6 +28,11 @@ const getStructure = t => ({
|
|||
create : {
|
||||
title: t('Create Namespace'),
|
||||
render: props => (<CUD {...props} />)
|
||||
},
|
||||
share: {
|
||||
title: t('Share Namespace'),
|
||||
params: [':id'],
|
||||
render: props => (<Share title={entity => t('Share Namespace "{{name}}"', {name: entity.name})} getUrl={id => `/rest/namespaces/${id}`} entityTypeId="namespace" {...props} />)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue