diff --git a/ui/src/config/section/storage.js b/ui/src/config/section/storage.js
index 9dfa832dd22..26cbeabbafa 100644
--- a/ui/src/config/section/storage.js
+++ b/ui/src/config/section/storage.js
@@ -107,7 +107,8 @@ export default {
icon: 'fullscreen',
label: 'Resize Volume',
dataView: true,
- args: ['size']
+ popup: true,
+ component: () => import('@/views/storage/ResizeVolume.vue')
},
{
api: 'migrateVolume',
diff --git a/ui/src/views/storage/CreateVolume.vue b/ui/src/views/storage/CreateVolume.vue
index 3329bb411ae..5a5e0735d65 100644
--- a/ui/src/views/storage/CreateVolume.vue
+++ b/ui/src/views/storage/CreateVolume.vue
@@ -110,7 +110,8 @@ export default {
fetchDiskOfferings (zoneId) {
this.loading = true
api('listDiskOfferings', {
- zoneId: zoneId
+ zoneid: zoneId,
+ listall: true
}).then(json => {
this.offerings = json.listdiskofferingsresponse.diskoffering || []
this.selectedDiskOfferingId = this.offerings[0].id || ''
diff --git a/ui/src/views/storage/ResizeVolume.vue b/ui/src/views/storage/ResizeVolume.vue
new file mode 100644
index 00000000000..ee460b55047
--- /dev/null
+++ b/ui/src/views/storage/ResizeVolume.vue
@@ -0,0 +1,156 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+
+
+
+
+