mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 15:07:43 +00:00
Fixed: Fix the issue of the create asset button not being disabled under the global organization.
This commit is contained in:
@@ -126,6 +126,7 @@ export default {
|
||||
icon: '',
|
||||
split: true,
|
||||
has: this.headerActions.hasCreate,
|
||||
can: !this.$store.getters.currentOrgIsRoot,
|
||||
callback: () => {
|
||||
this.showPlatform = false
|
||||
setTimeout(() => {
|
||||
@@ -185,6 +186,10 @@ export default {
|
||||
}
|
||||
const create = this.createAction
|
||||
create.dropdown = this.recentPlatforms
|
||||
create.dropdown.map((item) => {
|
||||
item.can = !this.$store.getters.currentOrgIsRoot
|
||||
return item
|
||||
})
|
||||
const extraActions = actions.extraActions || []
|
||||
actions.extraActions = [create, ...extraActions]
|
||||
// actions.extraActions[0].dropdown = platforms
|
||||
|
Reference in New Issue
Block a user