[pve-devel] [PATCH manager] Fix #2019: CephFS storage misses Max Backups
Alwin Antreich
a.antreich at proxmox.com
Fri Dec 7 09:02:57 CET 2018
Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
www/manager6/storage/CephFSEdit.js | 13 ++++++++++++-
www/manager6/storage/RBDEdit.js | 2 +-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/www/manager6/storage/CephFSEdit.js b/www/manager6/storage/CephFSEdit.js
index 0580e8fc..fff68b1d 100644
--- a/www/manager6/storage/CephFSEdit.js
+++ b/www/manager6/storage/CephFSEdit.js
@@ -69,9 +69,20 @@ Ext.define('PVE.storage.CephFSInputPanel', {
cts: ['backup', 'iso', 'vztmpl'],
fieldLabel: gettext('Content'),
name: 'content',
- value: ['backup'],
+ value: 'backup',
multiSelect: true,
allowBlank: false
+ },
+ {
+ xtype: 'proxmoxintegerfield',
+ fieldLabel: gettext('Max Backups'),
+ disabled: true,
+ name: 'maxfiles',
+ reference: 'maxfiles',
+ minValue: 0,
+ maxValue: 365,
+ value: me.isCreate ? '1' : undefined,
+ allowBlank: false
}
];
diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
index c38759df..4ecd98e4 100644
--- a/www/manager6/storage/RBDEdit.js
+++ b/www/manager6/storage/RBDEdit.js
@@ -10,7 +10,7 @@ Ext.define('PVE.storage.Ceph.Model', {
});
Ext.define('PVE.storage.Ceph.Controller', {
- extend: 'Ext.app.ViewController',
+ extend: 'PVE.controller.StorageEdit',
alias: 'controller.cephstorage',
control: {
--
2.11.0
More information about the pve-devel
mailing list