mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:59:33 +00:00
ui: ceph status: fix code style, xtype must come first
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
dd604328aa
commit
616d54de16
@ -44,14 +44,15 @@ Ext.define('PVE.node.CephStatus', {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
flex: 1,
|
|
||||||
itemId: 'overallhealth',
|
|
||||||
xtype: 'pveHealthWidget',
|
xtype: 'pveHealthWidget',
|
||||||
|
itemId: 'overallhealth',
|
||||||
|
flex: 1,
|
||||||
title: gettext('Status'),
|
title: gettext('Status'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
itemId: 'versioninfo',
|
|
||||||
xtype: 'displayfield',
|
xtype: 'displayfield',
|
||||||
|
itemId: 'versioninfo',
|
||||||
fieldLabel: gettext('Ceph Version'),
|
fieldLabel: gettext('Ceph Version'),
|
||||||
value: "",
|
value: "",
|
||||||
autoEl: {
|
autoEl: {
|
||||||
@ -66,11 +67,11 @@ Ext.define('PVE.node.CephStatus', {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
flex: 2,
|
xtype: 'grid',
|
||||||
itemId: 'warnings',
|
itemId: 'warnings',
|
||||||
|
flex: 2,
|
||||||
stateful: true,
|
stateful: true,
|
||||||
stateId: 'ceph-status-warnings',
|
stateId: 'ceph-status-warnings',
|
||||||
xtype: 'grid',
|
|
||||||
// we load the store manually, to show an emptyText specify an empty intermediate store
|
// we load the store manually, to show an emptyText specify an empty intermediate store
|
||||||
store: {
|
store: {
|
||||||
trackRemoved: false,
|
trackRemoved: false,
|
||||||
@ -154,8 +155,8 @@ Ext.define('PVE.node.CephStatus', {
|
|||||||
title: gettext('Status'),
|
title: gettext('Status'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: gettext('Services'),
|
|
||||||
xtype: 'pveCephServices',
|
xtype: 'pveCephServices',
|
||||||
|
title: gettext('Services'),
|
||||||
itemId: 'services',
|
itemId: 'services',
|
||||||
plugins: 'responsive',
|
plugins: 'responsive',
|
||||||
layout: {
|
layout: {
|
||||||
@ -184,8 +185,8 @@ Ext.define('PVE.node.CephStatus', {
|
|||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
flex: 1,
|
|
||||||
xtype: 'container',
|
xtype: 'container',
|
||||||
|
flex: 1,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxGauge',
|
xtype: 'proxmoxGauge',
|
||||||
@ -203,8 +204,8 @@ Ext.define('PVE.node.CephStatus', {
|
|||||||
padding: 25,
|
padding: 25,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
itemId: 'recoverychart',
|
|
||||||
xtype: 'pveRunningChart',
|
xtype: 'pveRunningChart',
|
||||||
|
itemId: 'recoverychart',
|
||||||
title: gettext('Recovery') +'/ '+ gettext('Rebalance'),
|
title: gettext('Recovery') +'/ '+ gettext('Rebalance'),
|
||||||
renderer: PVE.Utils.render_bandwidth,
|
renderer: PVE.Utils.render_bandwidth,
|
||||||
height: 100,
|
height: 100,
|
||||||
@ -218,34 +219,34 @@ Ext.define('PVE.node.CephStatus', {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
flex: 2,
|
|
||||||
xtype: 'container',
|
xtype: 'container',
|
||||||
|
flex: 2,
|
||||||
defaults: {
|
defaults: {
|
||||||
padding: 0,
|
padding: 0,
|
||||||
height: 100,
|
height: 100,
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
itemId: 'reads',
|
|
||||||
xtype: 'pveRunningChart',
|
xtype: 'pveRunningChart',
|
||||||
|
itemId: 'reads',
|
||||||
title: gettext('Reads'),
|
title: gettext('Reads'),
|
||||||
renderer: PVE.Utils.render_bandwidth,
|
renderer: PVE.Utils.render_bandwidth,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
itemId: 'writes',
|
|
||||||
xtype: 'pveRunningChart',
|
xtype: 'pveRunningChart',
|
||||||
|
itemId: 'writes',
|
||||||
title: gettext('Writes'),
|
title: gettext('Writes'),
|
||||||
renderer: PVE.Utils.render_bandwidth,
|
renderer: PVE.Utils.render_bandwidth,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
itemId: 'readiops',
|
|
||||||
xtype: 'pveRunningChart',
|
xtype: 'pveRunningChart',
|
||||||
|
itemId: 'readiops',
|
||||||
title: 'IOPS: ' + gettext('Reads'),
|
title: 'IOPS: ' + gettext('Reads'),
|
||||||
renderer: Ext.util.Format.numberRenderer('0,000'),
|
renderer: Ext.util.Format.numberRenderer('0,000'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
itemId: 'writeiops',
|
|
||||||
xtype: 'pveRunningChart',
|
xtype: 'pveRunningChart',
|
||||||
|
itemId: 'writeiops',
|
||||||
title: 'IOPS: ' + gettext('Writes'),
|
title: 'IOPS: ' + gettext('Writes'),
|
||||||
renderer: Ext.util.Format.numberRenderer('0,000'),
|
renderer: Ext.util.Format.numberRenderer('0,000'),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user