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”
|
> 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
|
### Bug fixes
|
||||||
|
|
||||||
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
||||||
@@ -27,4 +29,6 @@
|
|||||||
|
|
||||||
<!--packages-start-->
|
<!--packages-start-->
|
||||||
|
|
||||||
|
- xo-web minor
|
||||||
|
|
||||||
<!--packages-end-->
|
<!--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 }) => {
|
const ROW_TRANSFORM = (task, { vms }) => {
|
||||||
let vm, dataSize
|
let vm, dataSize
|
||||||
if (task.status === 'success') {
|
if (task.status === 'success') {
|
||||||
@@ -156,6 +164,7 @@ export default decorate([
|
|||||||
data-vms={vms}
|
data-vms={vms}
|
||||||
emptyMessage={_('noLogs')}
|
emptyMessage={_('noLogs')}
|
||||||
filters={LOG_FILTERS}
|
filters={LOG_FILTERS}
|
||||||
|
individualActions={INDIVIDUAL_ACTIONS}
|
||||||
rowTransform={ROW_TRANSFORM}
|
rowTransform={ROW_TRANSFORM}
|
||||||
stateUrlParam='s_logs'
|
stateUrlParam='s_logs'
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user