feat(xo-web/backup/restore): can open raw log (#6936)
This commit is contained in:
@@ -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'
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user