perf: add drawer functionality and title formatting to AccountChangeSecret and AccountPush execution lists

This commit is contained in:
w940853815
2025-02-19 18:47:52 +08:00
committed by w940853815
parent d5099c3a04
commit ffee484d6c
2 changed files with 9 additions and 1 deletions

View File

@@ -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',

View File

@@ -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
},