feat(xo-web/backup/restore): can open raw log (#6936)

This commit is contained in:
Julien Fontanet
2023-07-07 11:20:49 +02:00
committed by GitHub
parent 9e0b5575a4
commit 2652c87917
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -7,6 +7,8 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Backup/Restore] Button to open the raw log in the REST API (PR [#6936](https://github.com/vatesfr/xen-orchestra/pull/6936))
### Bug fixes
> Users must be able to say: “I had this issue, happy to know it's fixed”
@@ -27,4 +29,6 @@
<!--packages-start-->
- xo-web minor
<!--packages-end-->
@@ -117,6 +117,14 @@ const COLUMNS = [
},
]
const INDIVIDUAL_ACTIONS = [
{
handler: task => window.open('./rest/v0/restore/logs/' + task.id),
icon: 'api',
label: _('taskOpenRawLog'),
},
]
const ROW_TRANSFORM = (task, { vms }) => {
let vm, dataSize
if (task.status === 'success') {
@@ -156,6 +164,7 @@ export default decorate([
data-vms={vms}
emptyMessage={_('noLogs')}
filters={LOG_FILTERS}
individualActions={INDIVIDUAL_ACTIONS}
rowTransform={ROW_TRANSFORM}
stateUrlParam='s_logs'
/>