]>
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',
11 PVE
.Utils
.API2Request({
14 failure: function(response
, opts
) {
15 me
.update(gettext('Error') + " " + response
.htmlStatus
);
17 success: function(response
, opts
) {
18 var data
= response
.result
.data
;
19 me
.update(Ext
.htmlEncode(data
));
24 initComponent: function() {
27 var nodename
= me
.pveSelNode
.data
.node
;
29 throw "no node name specified";
33 url
: '/nodes/' + nodename
+ '/ceph/config',
35 activate: function() {
47 Ext
.define('PVE.node.CephConfigCrush', {
48 extend
: 'Ext.panel.Panel',
49 alias
: 'widget.pveNodeCephConfigCrush',
53 title
: gettext('Ceph Config'),
54 xtype
: 'pveNodeCephConfig',
58 title
: gettext('Crush Map'),
59 xtype
: 'pveNodeCephCrushMap',
65 initComponent: function() {
68 pveSelNode
: me
.pveSelNode