Commit a89d3dd1 authored by Dietmar Maurer's avatar Dietmar Maurer

improve quorum renderer

parent 0327a32c
......@@ -58,16 +58,11 @@ Ext.define('PVE.node.CephStatus', {
}
var renderquorum = function(value) {
if (!value) {
return '';
if (!value || value.length < 0) {
return 'No';
}
var txt = '';
Ext.Array.each(value, function(name) {
txt += name + ' ';
});
return txt;
return 'Yes {' + value.join(' ') + '}';
};
var rendermonmap = function(d) {
......@@ -143,6 +138,11 @@ Ext.define('PVE.node.CephStatus', {
renderer: renderhealth,
required: true
},
quorum_names: {
header: 'quorum',
renderer: renderquorum,
required: true
},
fsid: {
header: 'cluster',
required: true
......@@ -152,11 +152,6 @@ Ext.define('PVE.node.CephStatus', {
renderer: rendermonmap,
required: true
},
quorum_names: {
header: 'quorum',
renderer: renderquorum,
required: true
},
osdmap: {
header: 'osdmap',
renderer: renderosdmap,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment