Adjust namespace/modules/charts export rbac keys
This commit is contained in:
parent
a1484098f0
commit
d4a00d99f4
@ -25,7 +25,7 @@
|
|||||||
>
|
>
|
||||||
<b-card-header class="d-flex py-3 align-items-center border-bottom gap-1">
|
<b-card-header class="d-flex py-3 align-items-center border-bottom gap-1">
|
||||||
<export
|
<export
|
||||||
v-if="chart.canExportChart"
|
v-if="namespace.canExportCharts"
|
||||||
slot="header"
|
slot="header"
|
||||||
:list="[chart]"
|
:list="[chart]"
|
||||||
type="chart"
|
type="chart"
|
||||||
|
|||||||
@ -61,7 +61,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<export
|
<export
|
||||||
v-if="namespace.canExportChart"
|
v-if="namespace.canExportCharts"
|
||||||
:list="charts"
|
:list="charts"
|
||||||
type="chart"
|
type="chart"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -88,7 +88,7 @@
|
|||||||
</b-button>
|
</b-button>
|
||||||
|
|
||||||
<export
|
<export
|
||||||
v-if="module.canExportModule"
|
v-if="namespace.canExportModules"
|
||||||
:list="[module]"
|
:list="[module]"
|
||||||
type="module"
|
type="module"
|
||||||
class="mr-1"
|
class="mr-1"
|
||||||
|
|||||||
@ -52,7 +52,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<export
|
<export
|
||||||
v-if="namespace.canExportModule"
|
v-if="namespace.canExportModules"
|
||||||
:list="modules"
|
:list="modules"
|
||||||
type="module"
|
type="module"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -40,7 +40,6 @@ export class BaseChart {
|
|||||||
public canUpdateChart = false
|
public canUpdateChart = false
|
||||||
public canDeleteChart = false
|
public canDeleteChart = false
|
||||||
public canGrant = false
|
public canGrant = false
|
||||||
public canExportChart = false
|
|
||||||
|
|
||||||
public config: ChartConfig = {}
|
public config: ChartConfig = {}
|
||||||
|
|
||||||
@ -107,7 +106,7 @@ export class BaseChart {
|
|||||||
Apply(this, c, CortezaID, 'chartID', 'namespaceID')
|
Apply(this, c, CortezaID, 'chartID', 'namespaceID')
|
||||||
Apply(this, c, String, 'name', 'handle')
|
Apply(this, c, String, 'name', 'handle')
|
||||||
Apply(this, c, ISO8601Date, 'createdAt', 'updatedAt', 'deletedAt')
|
Apply(this, c, ISO8601Date, 'createdAt', 'updatedAt', 'deletedAt')
|
||||||
Apply(this, c, Boolean, 'canUpdateChart', 'canDeleteChart', 'canGrant', 'canExportChart')
|
Apply(this, c, Boolean, 'canUpdateChart', 'canDeleteChart', 'canGrant')
|
||||||
Apply(this, c, Object, 'config')
|
Apply(this, c, Object, 'config')
|
||||||
|
|
||||||
if (typeof c.config === 'object') {
|
if (typeof c.config === 'object') {
|
||||||
|
|||||||
@ -187,7 +187,6 @@ export class Module {
|
|||||||
|
|
||||||
public canUpdateModule = false;
|
public canUpdateModule = false;
|
||||||
public canDeleteModule = false;
|
public canDeleteModule = false;
|
||||||
public canExportModule = false;
|
|
||||||
public canCreateRecord = false;
|
public canCreateRecord = false;
|
||||||
public canCreateOwnedRecord = false;
|
public canCreateOwnedRecord = false;
|
||||||
public canGrant = false;
|
public canGrant = false;
|
||||||
@ -251,7 +250,6 @@ export class Module {
|
|||||||
Apply(this, m, Boolean,
|
Apply(this, m, Boolean,
|
||||||
'canUpdateModule',
|
'canUpdateModule',
|
||||||
'canDeleteModule',
|
'canDeleteModule',
|
||||||
'canExportModule',
|
|
||||||
'canCreateRecord',
|
'canCreateRecord',
|
||||||
'canCreateOwnedRecord',
|
'canCreateOwnedRecord',
|
||||||
'canGrant',
|
'canGrant',
|
||||||
|
|||||||
@ -51,8 +51,8 @@ export class Namespace {
|
|||||||
public canCloneNamespace = false
|
public canCloneNamespace = false
|
||||||
public canExportNamespace = false
|
public canExportNamespace = false
|
||||||
public canGrant = false
|
public canGrant = false
|
||||||
public canExportChart = false
|
public canExportCharts = false
|
||||||
public canExportModule = false
|
public canExportModules = false
|
||||||
|
|
||||||
constructor (i?: PartialNamespace) {
|
constructor (i?: PartialNamespace) {
|
||||||
this.apply(i)
|
this.apply(i)
|
||||||
@ -87,10 +87,10 @@ export class Namespace {
|
|||||||
'canExportNamespace',
|
'canExportNamespace',
|
||||||
'canGrant',
|
'canGrant',
|
||||||
'canCreateModule',
|
'canCreateModule',
|
||||||
'canExportModule',
|
'canExportModules',
|
||||||
'canCreatePage',
|
'canCreatePage',
|
||||||
'canCreateChart',
|
'canCreateChart',
|
||||||
'canExportChart',
|
'canExportCharts',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user