mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
perf: add drawer functionality and title formatting to AccountChangeSecret and AccountPush execution lists
This commit is contained in:
@@ -44,6 +44,10 @@ export default {
|
||||
label: this.$t('DisplayName'),
|
||||
formatter: DetailFormatter,
|
||||
formatterArgs: {
|
||||
drawer: true,
|
||||
getDrawerTitle({ row }) {
|
||||
return row.snapshot.name
|
||||
},
|
||||
getTitle: ({ row }) => row.snapshot.name,
|
||||
getRoute: ({ row }) => ({
|
||||
name: 'AccountChangeSecretDetail',
|
||||
|
||||
@@ -50,11 +50,15 @@ export default {
|
||||
label: this.$t('DisplayName'),
|
||||
formatter: DetailFormatter,
|
||||
formatterArgs: {
|
||||
drawer: true,
|
||||
getTitle: ({ row }) => row.snapshot.name,
|
||||
getRoute: ({ row }) => ({
|
||||
name: 'AccountPushDetail',
|
||||
params: { id: row.automation }
|
||||
})
|
||||
}),
|
||||
getDrawerTitle({ row }) {
|
||||
return row.snapshot.name
|
||||
}
|
||||
},
|
||||
id: ({ row }) => row.automation
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user