]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/ceph/Config.js
1 Ext
.define('PVE.node.CephConfig', {
2 extend
: 'Ext.panel.Panel',
3 alias
: 'widget.pveNodeCephConfig',
5 bodyStyle
: 'white-space:pre',
12 Proxmox
.Utils
.API2Request({
15 failure: function(response
, opts
) {
16 me
.update(gettext('Error') + " " + response
.htmlStatus
);
18 success: function(response
, opts
) {
19 var data
= response
.result
.data
;
20 me
.update(Ext
.htmlEncode(data
));
25 initComponent: function() {
28 var nodename
= me
.pveSelNode
.data
.node
;
30 throw "no node name specified";
34 url
: '/nodes/' + nodename
+ '/ceph/config',
36 activate: function() {
48 Ext
.define('PVE.node.CephConfigCrush', {
49 extend
: 'Ext.panel.Panel',
50 alias
: 'widget.pveNodeCephConfigCrush',
52 onlineHelp
: 'chapter_pveceph',
56 title
: gettext('Configuration'),
57 xtype
: 'pveNodeCephConfig',
61 title
: 'Crush Map', // do not localize
62 xtype
: 'pveNodeCephCrushMap',
68 initComponent: function() {
71 pveSelNode
: me
.pveSelNode