Skip to content

Commit

Permalink
fix(xo-web/import/disk): can't change file name when importing from U…
Browse files Browse the repository at this point in the history
…RL (#7332)

Fixes [#7326](#7326)
  • Loading branch information
Pizzosaure committed Jan 30, 2024
1 parent 2e6f7d3 commit 6084db2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Pool/Advanced] Show pool backup/migration network even if they no longer exist (PR [#7303](https://github.com/vatesfr/xen-orchestra/pull/7303))
- [Import/disk] Couldn't update 'name' field when importing from a URL [#7326](https://github.com/vatesfr/xen-orchestra/issues/7326) (PR [#7332](https://github.com/vatesfr/xen-orchestra/pull/7332))

### Packages to release

Expand Down
7 changes: 3 additions & 4 deletions packages/xo-web/src/xo-app/disk-import/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ const DiskImport = decorate([
onChangeFileType: (_, fileType) => ({ fileType }),
onChangeName:
(_, { target: { name, value } }) =>
({ mapNames }) => {
mapNames[name] = value
return { mapNames }
},
({ mapNames }) => ({
mapNames: { ...mapNames, [name]: value },
}),
onChangeSr: (_, sr) => ({ sr }),
onChangeUrl:
(_, { target: { value } }) =>
Expand Down

0 comments on commit 6084db2

Please sign in to comment.