feat(xo-web/backup): don't open edition in new tab (#5130)

This commit is contained in:
Rajaa.BARHTAOUI 2020-07-03 11:45:06 +02:00 committed by GitHub
parent cbada35788
commit 6beefe86e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
- [Home] Remove 'tags' filter from the filter selector since tags have their own selector (PR [#5121](https://github.com/vatesfr/xen-orchestra/pull/5121))
- [Backup/New] Add "XOA Proxy" to the excluded tags by default (PR [#5128](https://github.com/vatesfr/xen-orchestra/pull/5128))
- [Backup/overview] Don't open backup job edition in a new tab (PR [#5130](https://github.com/vatesfr/xen-orchestra/pull/5130))
### Bug fixes

View File

@ -342,7 +342,8 @@ class JobsTable extends React.Component {
icon: 'preview',
},
{
handler: (job, { goToNewTab }) => goToNewTab(`/backup/${job.id}/edit`),
handler: (job, { goTo, goToNewTab, main }) =>
(main ? goTo : goToNewTab)(`/backup/${job.id}/edit`),
label: _('formEdit'),
icon: 'edit',
level: 'primary',