[pve-devel] [PATCH] fix #6315: Add a field for a storage description

Alexander Abraham a.abraham at proxmox.com
Mon Jul 14 14:54:13 CEST 2025


A field was added in the UI for users to enter a
description for an added storage and a column was
added in the storage overview for viewing the description
of an added storage.

Signed-off-by: Alexander Abraham <a.abraham at proxmox.com>
---
 www/manager6/dc/StorageView.js |  6 ++++++
 www/manager6/storage/Base.js   | 13 +++++++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/www/manager6/dc/StorageView.js b/www/manager6/dc/StorageView.js
index e4c6f07d..0674bb4e 100644
--- a/www/manager6/dc/StorageView.js
+++ b/www/manager6/dc/StorageView.js
@@ -108,6 +108,12 @@ Ext.define(
                         sortable: true,
                         dataIndex: 'storage',
                     },
+                    {
+                        header: gettext('Description'),
+                        flex: 1,
+                        sortable: false,
+                        dataIndex: 'description'
+                    },
                     {
                         header: gettext('Type'),
                         flex: 1,
diff --git a/www/manager6/storage/Base.js b/www/manager6/storage/Base.js
index a887068d..bad037aa 100644
--- a/www/manager6/storage/Base.js
+++ b/www/manager6/storage/Base.js
@@ -22,14 +22,23 @@ Ext.define('PVE.panel.StorageBase', {
     initComponent: function () {
         let me = this;
 
-        me.column1.unshift({
+        me.column1.unshift(
+          {
             xtype: me.isCreate ? 'textfield' : 'displayfield',
             name: 'storage',
             value: me.storageId || '',
             fieldLabel: 'ID',
             vtype: 'StorageId',
             allowBlank: false,
-        });
+        },
+        {
+            xtype: me.isCreate ? 'textfield' : 'displayfield',
+            name: 'description',
+            value: '',
+            fieldLabel: 'Description',
+            allowBlank: false,
+        }
+      );
 
         me.column2 = me.column2 || [];
         me.column2.unshift(
-- 
2.39.5





More information about the pve-devel mailing list