mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-17 14:27:18 +00:00
Fixed: Fix the issues with deleting an account and retrieving account information in the asset details.
This commit is contained in:
parent
52ca8f55a2
commit
6fa4efaa5f
@ -283,6 +283,11 @@ export default {
|
|||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter,
|
||||||
has: this.showActions,
|
has: this.showActions,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
|
performDelete: ({ row }) => {
|
||||||
|
const id = row.id
|
||||||
|
const url = `/api/v1/accounts/accounts/${id}/`
|
||||||
|
return this.$axios.delete(url)
|
||||||
|
},
|
||||||
hasUpdate: false, // can set function(row, value)
|
hasUpdate: false, // can set function(row, value)
|
||||||
hasDelete: true, // can set function(row, value)
|
hasDelete: true, // can set function(row, value)
|
||||||
hasClone: false,
|
hasClone: false,
|
||||||
|
@ -46,7 +46,7 @@ export default {
|
|||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '/api/v1/accounts/accounts/'
|
default: ''
|
||||||
},
|
},
|
||||||
extraQuickActions: {
|
extraQuickActions: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
Loading…
Reference in New Issue
Block a user