* [pve-devel] [PATCH] fix #6315: Add a field for a storage description
@ 2025-07-14 12:54 Alexander Abraham
0 siblings, 0 replies; only message in thread
From: Alexander Abraham @ 2025-07-14 12:54 UTC (permalink / raw)
To: pve-devel
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@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
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-14 12:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-14 12:54 [pve-devel] [PATCH] fix #6315: Add a field for a storage description Alexander Abraham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox