public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christoph Heiss <c.heiss@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager] ui: cephfs: note that at least one MDS is required for creating CephFS
Date: Wed,  2 Dec 2026 12:38:58 +0100	[thread overview]
Message-ID: <20261202113917.252448-1-c.heiss@proxmox.com> (raw)

Currently, if a user does not have a MDS configured yet, the "Create
CephFS" button is just greyed out and not apparent why.

It isn't directly obvious that a MDS is needed, at least to new Ceph
users. Adding a simple note here tells the user what needs to be done.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 www/manager6/ceph/FS.js | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/www/manager6/ceph/FS.js b/www/manager6/ceph/FS.js
index 5f0492555..7f4da89f5 100644
--- a/www/manager6/ceph/FS.js
+++ b/www/manager6/ceph/FS.js
@@ -95,13 +95,29 @@ Ext.define(
                 canCreateFS: function (get) {
                     return get('mdsCount') > 0;
                 },
+                emptyText: function (get) {
+                    let text = Ext.String.format(gettext('No {0} configured.'), 'CephFS');
+                    if (!get('canCreateFS')) {
+                        text += ' ';
+                        text += Ext.String.format(
+                            // TRANSLATORS: Metadata Server refers to Ceph's MDS.
+                            gettext(
+                                'To create a {0}, at least one Metadata Server must be configured first.',
+                            ),
+                            'CephFS',
+                        );
+                    }
+                    return text;
+                },
             },
         },
 
         items: [
             {
                 xtype: 'grid',
-                emptyText: Ext.String.format(gettext('No {0} configured.'), 'CephFS'),
+                bind: {
+                    emptyText: '{emptyText}',
+                },
                 controller: {
                     xclass: 'Ext.app.ViewController',
 
-- 
2.56.0





                 reply	other threads:[~2026-12-02 11:39 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=20261202113917.252448-1-c.heiss@proxmox.com \
    --to=c.heiss@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal