From: Alexander Abraham <a.abraham@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH] fix #6315: Add a field for a storage description
Date: Mon, 14 Jul 2025 14:54:13 +0200 [thread overview]
Message-ID: <20250714125413.37931-1-a.abraham@proxmox.com> (raw)
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
reply other threads:[~2025-07-14 12:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250714125413.37931-1-a.abraham@proxmox.com \
--to=a.abraham@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.