mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
Fixed: Domain Tab
This commit is contained in:
@@ -182,10 +182,14 @@ export default {
|
|||||||
if (this.addExtraMoreActions) {
|
if (this.addExtraMoreActions) {
|
||||||
actions.extraMoreActions = [...actions.extraMoreActions, ...this.addExtraMoreActions]
|
actions.extraMoreActions = [...actions.extraMoreActions, ...this.addExtraMoreActions]
|
||||||
}
|
}
|
||||||
const create = this.createAction
|
|
||||||
if (create) {
|
if (!actions.hasCrate) {
|
||||||
create.dropdown = this.recentPlatforms
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const create = this.createAction
|
||||||
|
create.dropdown = this.recentPlatforms
|
||||||
|
|
||||||
const extraActions = actions.extraActions || []
|
const extraActions = actions.extraActions || []
|
||||||
actions.extraActions = [create, ...extraActions]
|
actions.extraActions = [create, ...extraActions]
|
||||||
// actions.extraActions[0].dropdown = platforms
|
// actions.extraActions[0].dropdown = platforms
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<TwoCol>
|
<TwoCol>
|
||||||
<BaseList ref="AssetBaseList" v-bind="tableConfig" />
|
<BaseList ref="AssetBaseList" v-bind="config" />
|
||||||
</TwoCol>
|
</TwoCol>
|
||||||
<AddAssetDialog :object="object" :setting="addAssetSetting" @close="handleAddAssetDialogClose" />
|
<AddAssetDialog :object="object" :setting="addAssetSetting" @close="handleAddAssetDialogClose" />
|
||||||
</div>
|
</div>
|
||||||
@@ -27,7 +27,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableConfig: {
|
config: {
|
||||||
category: 'all',
|
category: 'all',
|
||||||
url: `/api/v1/assets/assets/?domain=${this.object.id}&is_gateway=0`,
|
url: `/api/v1/assets/assets/?domain=${this.object.id}&is_gateway=0`,
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
|
Reference in New Issue
Block a user