mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 02:31:43 +00:00
offline session actions button
This commit is contained in:
@@ -17,6 +17,9 @@ export default {
|
|||||||
name: 'replay',
|
name: 'replay',
|
||||||
title: this.$t('sessions.replay'),
|
title: this.$t('sessions.replay'),
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
can: (row, cellValue) => {
|
||||||
|
return row.has_replay
|
||||||
|
},
|
||||||
callback: function({ cellValue, tableData }) {
|
callback: function({ cellValue, tableData }) {
|
||||||
// 跳转到luna页面
|
// 跳转到luna页面
|
||||||
const replayUrl = '/luna/replay/' + cellValue
|
const replayUrl = '/luna/replay/' + cellValue
|
||||||
@@ -27,6 +30,9 @@ export default {
|
|||||||
name: 'download',
|
name: 'download',
|
||||||
title: this.$t('sessions.download'),
|
title: this.$t('sessions.download'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
can: (row, cellValue) => {
|
||||||
|
return row.has_replay
|
||||||
|
},
|
||||||
callback: function({ cellValue, tableData }) {
|
callback: function({ cellValue, tableData }) {
|
||||||
// 跳转下载页面
|
// 跳转下载页面
|
||||||
const downloadUrl = '/terminal/session/00000000-0000-0000-0000-000000000000/replay/download/'
|
const downloadUrl = '/terminal/session/00000000-0000-0000-0000-000000000000/replay/download/'
|
||||||
|
Reference in New Issue
Block a user