Fix incorrect volume type value in ng images create volume form
The value of the 'volume_type' is determined by the 'volumeType'
object [1]. The value of the 'volume_type' changes only the
'volumeType' object changes. However, the current value of the
'volume_type' is changed according to the volume object change [2].
It will cause a phenomenon, when the page is initialized, the value
of 'volume_type' is empty, when we switch volume types drop-down box,
its value is also empty, only change the name, description, size and
availability zone, the value of 'volume_type' is the page selection.
Reviewed: https:/ /review. openstack. org/531023 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=1a2b742fe9f e5f37e8b68b9b63 ab3bb332a6af31
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 1a2b742fe9fe5f3 7e8b68b9b63ab3b b332a6af31
Author: wei.ying <email address hidden>
Date: Fri Nov 17 12:03:56 2017 +0800
Fix incorrect volume type value in ng images create volume form
The value of the 'volume_type' is determined by the 'volumeType'
object [1]. The value of the 'volume_type' changes only the
'volumeType' object changes. However, the current value of the
'volume_type' is changed according to the volume object change [2].
It will cause a phenomenon, when the page is initialized, the value
of 'volume_type' is empty, when we switch volume types drop-down box,
its value is also empty, only change the name, description, size and
availability zone, the value of 'volume_type' is the page selection.
[1] https:/ /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ static/ app/core/ images/ steps/create- volume/ create- volume. html#L45 /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ static/ app/core/ images/ steps/create- volume/ create- volume. controller. js#L140
[2] https:/
Change-Id: If754d0c2ced844 414c35829d4cefa 1fb861522d5 Bug:#1737900 0133671790baa9d d42223c996)
Closes-
(cherry picked from commit 3aee4cbac666f08