mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
refactor(web) move access management tab to the front (#13092)
This commit is contained in:
parent
550a801196
commit
d2578b7d34
@ -91,11 +91,7 @@ export class ContainerEntity implements Entity<Container> {
|
||||
component: DocumentationTab,
|
||||
},
|
||||
{
|
||||
name: 'Properties',
|
||||
component: PropertiesTab,
|
||||
},
|
||||
{
|
||||
name: 'Access Management',
|
||||
name: 'Access',
|
||||
component: AccessManagement,
|
||||
display: {
|
||||
visible: (_, container: GetContainerQuery) => {
|
||||
@ -111,6 +107,10 @@ export class ContainerEntity implements Entity<Container> {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Properties',
|
||||
component: PropertiesTab,
|
||||
},
|
||||
]}
|
||||
sidebarSections={this.getSidebarSections()}
|
||||
/>
|
||||
|
@ -148,6 +148,18 @@ export class DatasetEntity implements Entity<Dataset> {
|
||||
name: 'Lineage',
|
||||
component: LineageTab,
|
||||
},
|
||||
{
|
||||
name: 'Access',
|
||||
component: AccessManagement,
|
||||
display: {
|
||||
visible: (_, _1) => this.appconfig().config.featureFlags.showAccessManagement,
|
||||
enabled: (_, dataset: GetDatasetQuery) => {
|
||||
const accessAspect = dataset?.dataset?.access;
|
||||
const rolesList = accessAspect?.roles;
|
||||
return !!accessAspect && !!rolesList && rolesList.length > 0;
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Properties',
|
||||
component: PropertiesTab,
|
||||
@ -203,18 +215,6 @@ export class DatasetEntity implements Entity<Dataset> {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Access Management',
|
||||
component: AccessManagement,
|
||||
display: {
|
||||
visible: (_, _1) => this.appconfig().config.featureFlags.showAccessManagement,
|
||||
enabled: (_, dataset: GetDatasetQuery) => {
|
||||
const accessAspect = dataset?.dataset?.access;
|
||||
const rolesList = accessAspect?.roles;
|
||||
return !!accessAspect && !!rolesList && rolesList.length > 0;
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Incidents',
|
||||
component: IncidentTab,
|
||||
|
@ -189,6 +189,15 @@ export class DatasetEntity implements Entity<Dataset> {
|
||||
component: LineageTab,
|
||||
icon: PartitionOutlined,
|
||||
},
|
||||
{
|
||||
name: 'Access',
|
||||
component: AccessManagement,
|
||||
icon: UnlockOutlined,
|
||||
display: {
|
||||
visible: (_, _1) => this.appconfig().config.featureFlags.showAccessManagement,
|
||||
enabled: (_, _2) => true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Properties',
|
||||
component: PropertiesTab,
|
||||
@ -254,15 +263,6 @@ export class DatasetEntity implements Entity<Dataset> {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Access Management',
|
||||
component: AccessManagement,
|
||||
icon: UnlockOutlined,
|
||||
display: {
|
||||
visible: (_, _1) => this.appconfig().config.featureFlags.showAccessManagement,
|
||||
enabled: (_, _2) => true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Incidents',
|
||||
icon: WarningOutlined,
|
||||
|
Loading…
x
Reference in New Issue
Block a user