* [PATCH manager] ui: cephfs: note that at least one MDS is required for creating CephFS
@ 2026-12-02 11:38 Christoph Heiss
0 siblings, 0 replies; only message in thread
From: Christoph Heiss @ 2026-12-02 11:38 UTC (permalink / raw)
To: pve-devel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-02 11:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 11:38 [PATCH manager] ui: cephfs: note that at least one MDS is required for creating CephFS Christoph Heiss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox