]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/ceph/Config.js
1 Ext
.define('PVE.node.CephConfigDb', {
2 extend
: 'Ext.grid.Panel',
3 alias
: 'widget.pveNodeCephConfigDb',
9 Proxmox
.Utils
.API2Request({
12 failure: function(response
, opts
) {
13 console
.log(response
);
15 success: function(response
, opts
) {
16 var data
= response
.result
.data
;
17 me
.getStore().setData(data
);
50 dataIndex
: 'can_update_at_runtime',
51 text
: 'Runtime Updatable',
54 renderer
: Proxmox
.Utils
.format_boolean
58 initComponent: function() {
61 var nodename
= me
.pveSelNode
.data
.node
;
63 throw "no node name specified";
67 url
: '/nodes/' + nodename
+ '/ceph/configdb',
69 activate: function() {
80 Ext
.define('PVE.node.CephConfig', {
81 extend
: 'Ext.panel.Panel',
82 alias
: 'widget.pveNodeCephConfig',
84 bodyStyle
: 'white-space:pre',
91 Proxmox
.Utils
.API2Request({
94 failure: function(response
, opts
) {
95 me
.update(gettext('Error') + " " + response
.htmlStatus
);
96 var msg
= response
.htmlStatus
;
97 PVE
.Utils
.showCephInstallOrMask(me
.ownerCt
, msg
, me
.pveSelNode
.data
.node
,
99 me
.mon(win
, 'cephInstallWindowClosed', function(){
106 success: function(response
, opts
) {
107 var data
= response
.result
.data
;
108 me
.update(Ext
.htmlEncode(data
));
113 initComponent: function() {
116 var nodename
= me
.pveSelNode
.data
.node
;
118 throw "no node name specified";
122 url
: '/nodes/' + nodename
+ '/ceph/config',
124 activate: function() {
136 Ext
.define('PVE.node.CephConfigCrush', {
137 extend
: 'Ext.panel.Panel',
138 alias
: 'widget.pveNodeCephConfigCrush',
140 onlineHelp
: 'chapter_pveceph',
144 title
: gettext('Configuration'),
145 xtype
: 'pveNodeCephConfig',
149 title
: 'Crush Map', // do not localize
150 xtype
: 'pveNodeCephCrushMap',
156 title
: gettext('Configuration Database'),
157 xtype
: 'pveNodeCephConfigDb',
164 initComponent: function() {
167 pveSelNode
: me
.pveSelNode