fix(xo-web/import/disk): can't change file name when importing from URL (#7332)
Fixes [#7326](https://github.com/vatesfr/xen-orchestra/issues/7326)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 } }) =>
|
||||
|
||||
Reference in New Issue
Block a user